• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. var myConfig = {
    17. "type": "line",
    18. "plot": {
    19. "aspect": "spline",
    20. "tooltip": {
    21. "text": "%t: %v Sales",
    22. "font-color": "white",
    23. "font-family": "Georgia",
    24. "font-size": 20,
    25. "font-weight": "bold",
    26. "font-style": "normal"
    27. }
    28. },
    29. "scale-y": {
    30. "values": "23:43:10",
    31. },
    32. "series": [{
    33. "values": [30, 33, 41, 31, 35],
    34. "text": "Blue"
    35. },
    36. {
    37. "values": [34, 31, 27, 37, 31],
    38. "text": "Red"
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: myConfig,
    46. height: 400,
    47. width: "100%"
    48. });
    49. </script>
    50. </body>
    51.  
    52. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. var myConfig = {
    2. "type": "line",
    3. "plot": {
    4. "aspect": "spline",
    5. "tooltip": {
    6. "text": "%t: %v Sales",
    7. "font-color": "white",
    8. "font-family": "Georgia",
    9. "font-size": 20,
    10. "font-weight": "bold",
    11. "font-style": "normal"
    12. }
    13. },
    14. "scale-y": {
    15. "values": "23:43:10",
    16. },
    17. "series": [{
    18. "values": [30, 33, 41, 31, 35],
    19. "text": "Blue"
    20. },
    21. {
    22. "values": [34, 31, 27, 37, 31],
    23. "text": "Red"
    24. }
    25. ]
    26. };
    27.  
    28. zingchart.render({
    29. id: 'myChart',
    30. data: myConfig,
    31. height: 400,
    32. width: "100%"
    33. });