• 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. "title": {
    19. "text": "%plot-average"
    20. },
    21. "plot": {
    22. "value-box": {
    23. "text": "Plot Average: %plot-average",
    24. "decimals": 2,
    25. "type": "last",
    26. "placement": "right"
    27. }
    28. },
    29. "scale-x": {
    30. "values": "1:7:1"
    31. },
    32. "series": [{
    33. "values": [64, 50, 34, 30, 90, 99]
    34. },
    35. {
    36. "values": [70, 77, 84, 34, 30, 40]
    37. },
    38. {
    39. "values": [30, 34, 15, 16, 59, 64]
    40. }
    41. ]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig,
    47. height: 300,
    48. width: "100%"
    49. });
    50. </script>
    51. </body>
    52.  
    53. </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. "title": {
    4. "text": "%plot-average"
    5. },
    6. "plot": {
    7. "value-box": {
    8. "text": "Plot Average: %plot-average",
    9. "decimals": 2,
    10. "type": "last",
    11. "placement": "right"
    12. }
    13. },
    14. "scale-x": {
    15. "values": "1:7:1"
    16. },
    17. "series": [{
    18. "values": [64, 50, 34, 30, 90, 99]
    19. },
    20. {
    21. "values": [70, 77, 84, 34, 30, 40]
    22. },
    23. {
    24. "values": [30, 34, 15, 16, 59, 64]
    25. }
    26. ]
    27. };
    28.  
    29. zingchart.render({
    30. id: 'myChart',
    31. data: myConfig,
    32. height: 300,
    33. width: "100%"
    34. });