• 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. "value-box": {
    20. "text": "Plot Index: %plot-index",
    21. "type": "last",
    22. "placement": "right"
    23. }
    24. },
    25. "series": [{
    26. "values": [
    27. [1.3, 0.4],
    28. [2.3, 2.4],
    29. [3.3, 1.3]
    30. ]
    31. },
    32. {
    33. "values": [
    34. [1.3, 1.4],
    35. [2.3, 3.4],
    36. [3.3, 2.3]
    37. ]
    38. },
    39. {
    40. "values": [
    41. [1.3, 2.4],
    42. [2.3, 4.4],
    43. [3.3, 3.3]
    44. ]
    45. }
    46. ]
    47. };
    48.  
    49. zingchart.render({
    50. id: 'myChart',
    51. data: myConfig,
    52. height: 300,
    53. width: "100%"
    54. });
    55. </script>
    56. </body>
    57.  
    58. </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. "value-box": {
    5. "text": "Plot Index: %plot-index",
    6. "type": "last",
    7. "placement": "right"
    8. }
    9. },
    10. "series": [{
    11. "values": [
    12. [1.3, 0.4],
    13. [2.3, 2.4],
    14. [3.3, 1.3]
    15. ]
    16. },
    17. {
    18. "values": [
    19. [1.3, 1.4],
    20. [2.3, 3.4],
    21. [3.3, 2.3]
    22. ]
    23. },
    24. {
    25. "values": [
    26. [1.3, 2.4],
    27. [2.3, 4.4],
    28. [3.3, 3.3]
    29. ]
    30. }
    31. ]
    32. };
    33.  
    34. zingchart.render({
    35. id: 'myChart',
    36. data: myConfig,
    37. height: 300,
    38. width: "100%"
    39. });