• 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. "legend": {
    19.  
    20. },
    21. "plot": {
    22. "tooltip": {
    23. "text": "%t<br>%v"
    24. }
    25. },
    26. "scale-y": {
    27. "values": "0:300:50",
    28. "guide": {
    29. "line-style": "dotted"
    30. }
    31. },
    32. "series": [{
    33. "values": [138.6, 196.3, 153.6, 127.4, 114.1, 181.4, 131.5, 170.9, 154.7, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3],
    34. "text": "Test 1-001A3",
    35. "legend-text": "Test 1"
    36. },
    37. {
    38. "values": [184.8, 165.8, 122.4, 196.6, 179.1, 116.4, 175.9, 137.8, 120.9, 177.3, 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.1, 181.9],
    39. "text": "Test 2-002B4",
    40. "legend-text": "Test 2"
    41. },
    42. {
    43. "values": [108.7, 132.9, 161.6, 192.1, 134.5, 149.4, 183.9, 124.4, 114.5, 121.9, 149.7, 124.3, 199.3, 151.4, 112.5, 113.5, 165.6, 139.5, 194.6, 184.4],
    44. "text": "Test 3-004C3",
    45. "legend-text": "Test 3"
    46. },
    47. {
    48. "values": [113.2, 165.6, 139.5, 194.6, 184.4, 179.2, 173.1, 133.7, 190.5, 128.9, 169.3, 108.5, 124.3, 135.1, 122.5, 125.7, 157.6, 138.1, 162.8, 112.6],
    49. "text": "Test 4-004D1",
    50. "legend-text": "Test 4"
    51. },
    52. {
    53. "values": [136.6, 160.8, 155.2, 158.7, 119.1, 192.4, 164.8, 151.4, 125.1, 106.9, 103.2, 158.6, 100.7, 137.2, 108.1, 162.7, 192.8, 149.2, 142.8, 134.3],
    54. "text": "Test 5-034CE",
    55. "legend-text": "Test 5"
    56. }
    57. ]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: myConfig,
    63. height: 400,
    64. width: "100%"
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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. "legend": {
    4.  
    5. },
    6. "plot": {
    7. "tooltip": {
    8. "text": "%t<br>%v"
    9. }
    10. },
    11. "scale-y": {
    12. "values": "0:300:50",
    13. "guide": {
    14. "line-style": "dotted"
    15. }
    16. },
    17. "series": [{
    18. "values": [138.6, 196.3, 153.6, 127.4, 114.1, 181.4, 131.5, 170.9, 154.7, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3],
    19. "text": "Test 1-001A3",
    20. "legend-text": "Test 1"
    21. },
    22. {
    23. "values": [184.8, 165.8, 122.4, 196.6, 179.1, 116.4, 175.9, 137.8, 120.9, 177.3, 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.1, 181.9],
    24. "text": "Test 2-002B4",
    25. "legend-text": "Test 2"
    26. },
    27. {
    28. "values": [108.7, 132.9, 161.6, 192.1, 134.5, 149.4, 183.9, 124.4, 114.5, 121.9, 149.7, 124.3, 199.3, 151.4, 112.5, 113.5, 165.6, 139.5, 194.6, 184.4],
    29. "text": "Test 3-004C3",
    30. "legend-text": "Test 3"
    31. },
    32. {
    33. "values": [113.2, 165.6, 139.5, 194.6, 184.4, 179.2, 173.1, 133.7, 190.5, 128.9, 169.3, 108.5, 124.3, 135.1, 122.5, 125.7, 157.6, 138.1, 162.8, 112.6],
    34. "text": "Test 4-004D1",
    35. "legend-text": "Test 4"
    36. },
    37. {
    38. "values": [136.6, 160.8, 155.2, 158.7, 119.1, 192.4, 164.8, 151.4, 125.1, 106.9, 103.2, 158.6, 100.7, 137.2, 108.1, 162.7, 192.8, 149.2, 142.8, 134.3],
    39. "text": "Test 5-034CE",
    40. "legend-text": "Test 5"
    41. }
    42. ]
    43. };
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: myConfig,
    48. height: 400,
    49. width: "100%"
    50. });