• 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. "layout": "3x1",
    18. "graphset": [{
    19. "type": "line",
    20. "zoom": {
    21. "shared": true
    22. },
    23. "scroll-x": {
    24.  
    25. },
    26. "scale-x": {
    27. "zooming": true,
    28. "zoom-to": [0, 21],
    29. "max-items": 11,
    30. "item": {
    31. "font-size": 10
    32. },
    33. },
    34. "scale-y": {
    35. "values": "0:400:200",
    36. "item": {
    37. "font-size": 10
    38. }
    39. },
    40. "plotarea": {
    41. "margin": "dynamic"
    42. },
    43. "series": [{
    44. "values": [138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3, 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3, 237.2]
    45. },
    46. {
    47. "values": [122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2, 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7, 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4, 208.1]
    48. },
    49. {
    50. "values": [279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5, 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2, 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7, 262.7]
    51. }
    52. ]
    53. },
    54. {
    55. "type": "line",
    56. "zoom": {
    57. "shared": true
    58. },
    59. "scroll-x": {
    60.  
    61. },
    62. "scale-x": {
    63. "zooming": true,
    64. "zoom-to": [0, 21],
    65. "max-items": 11,
    66. "item": {
    67. "font-size": 10
    68. },
    69. },
    70. "scale-y": {
    71. "values": "0:400:200",
    72. "item": {
    73. "font-size": 10
    74. }
    75. },
    76. "plotarea": {
    77. "margin": "dynamic"
    78. },
    79. "series": [{
    80. "values": [138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3, 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3, 237.2]
    81. },
    82. {
    83. "values": [122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2, 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7, 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4, 208.1]
    84. },
    85. {
    86. "values": [279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5, 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2, 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7, 262.7]
    87. }
    88. ]
    89. },
    90. {
    91. "type": "line",
    92. "zoom": {
    93. "shared": true
    94. },
    95. "scroll-x": {
    96.  
    97. },
    98. "scale-x": {
    99. "zooming": true,
    100. "zoom-to": [0, 21],
    101. "max-items": 11,
    102. "item": {
    103. "font-size": 10
    104. }
    105. },
    106. "scale-y": {
    107. "values": "0:400:200",
    108. "item": {
    109. "font-size": 10
    110. }
    111. },
    112. "plotarea": {
    113. "margin": "dynamic"
    114. },
    115. "series": [{
    116. "values": [138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3, 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3, 237.2]
    117. },
    118. {
    119. "values": [122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2, 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7, 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4, 208.1]
    120. },
    121. {
    122. "values": [279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5, 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2, 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7, 262.7]
    123. }
    124. ]
    125. }
    126. ]
    127. };
    128.  
    129. zingchart.render({
    130. id: 'myChart',
    131. data: myConfig,
    132. height: 400,
    133. width: "100%"
    134. });
    135. </script>
    136. </body>
    137.  
    138. </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. "layout": "3x1",
    3. "graphset": [{
    4. "type": "line",
    5. "zoom": {
    6. "shared": true
    7. },
    8. "scroll-x": {
    9.  
    10. },
    11. "scale-x": {
    12. "zooming": true,
    13. "zoom-to": [0, 21],
    14. "max-items": 11,
    15. "item": {
    16. "font-size": 10
    17. },
    18. },
    19. "scale-y": {
    20. "values": "0:400:200",
    21. "item": {
    22. "font-size": 10
    23. }
    24. },
    25. "plotarea": {
    26. "margin": "dynamic"
    27. },
    28. "series": [{
    29. "values": [138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3, 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3, 237.2]
    30. },
    31. {
    32. "values": [122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2, 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7, 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4, 208.1]
    33. },
    34. {
    35. "values": [279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5, 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2, 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7, 262.7]
    36. }
    37. ]
    38. },
    39. {
    40. "type": "line",
    41. "zoom": {
    42. "shared": true
    43. },
    44. "scroll-x": {
    45.  
    46. },
    47. "scale-x": {
    48. "zooming": true,
    49. "zoom-to": [0, 21],
    50. "max-items": 11,
    51. "item": {
    52. "font-size": 10
    53. },
    54. },
    55. "scale-y": {
    56. "values": "0:400:200",
    57. "item": {
    58. "font-size": 10
    59. }
    60. },
    61. "plotarea": {
    62. "margin": "dynamic"
    63. },
    64. "series": [{
    65. "values": [138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3, 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3, 237.2]
    66. },
    67. {
    68. "values": [122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2, 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7, 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4, 208.1]
    69. },
    70. {
    71. "values": [279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5, 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2, 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7, 262.7]
    72. }
    73. ]
    74. },
    75. {
    76. "type": "line",
    77. "zoom": {
    78. "shared": true
    79. },
    80. "scroll-x": {
    81.  
    82. },
    83. "scale-x": {
    84. "zooming": true,
    85. "zoom-to": [0, 21],
    86. "max-items": 11,
    87. "item": {
    88. "font-size": 10
    89. }
    90. },
    91. "scale-y": {
    92. "values": "0:400:200",
    93. "item": {
    94. "font-size": 10
    95. }
    96. },
    97. "plotarea": {
    98. "margin": "dynamic"
    99. },
    100. "series": [{
    101. "values": [138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3, 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3, 237.2]
    102. },
    103. {
    104. "values": [122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2, 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7, 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4, 208.1]
    105. },
    106. {
    107. "values": [279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5, 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2, 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7, 262.7]
    108. }
    109. ]
    110. }
    111. ]
    112. };
    113.  
    114. zingchart.render({
    115. id: 'myChart',
    116. data: myConfig,
    117. height: 400,
    118. width: "100%"
    119. });