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