• 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-values"
    20. },
    21. "plot": {
    22. "value-box": {
    23. "text": "Plot Values:<br>%plot-values",
    24. "type": "last",
    25. "placement": "top"
    26. }
    27. },
    28. "scale-x": {
    29. "values": "0:4:1"
    30. },
    31. "series": [{
    32. "values": [
    33. [0.2, 2.1],
    34. [1.3, 0.4],
    35. [1.9, 1.9],
    36. [2.3, 2.4],
    37. [3.1, 3.0],
    38. [3.3, 1.3],
    39. [3.5, 3.4]
    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-values"
    5. },
    6. "plot": {
    7. "value-box": {
    8. "text": "Plot Values:<br>%plot-values",
    9. "type": "last",
    10. "placement": "top"
    11. }
    12. },
    13. "scale-x": {
    14. "values": "0:4:1"
    15. },
    16. "series": [{
    17. "values": [
    18. [0.2, 2.1],
    19. [1.3, 0.4],
    20. [1.9, 1.9],
    21. [2.3, 2.4],
    22. [3.1, 3.0],
    23. [3.3, 1.3],
    24. [3.5, 3.4]
    25. ]
    26. }]
    27. };
    28.  
    29. zingchart.render({
    30. id: 'myChart',
    31. data: myConfig,
    32. height: 300,
    33. width: "100%"
    34. });