• 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. legend: {
    24. shared: true
    25. },
    26. crosshairX: {
    27. shared: true
    28. },
    29. "scroll-x": {
    30.  
    31. },
    32. "scale-x": {
    33. "zooming": true,
    34. "zoom-to": [0, 21],
    35. "max-items": 11,
    36. "item": {
    37. "font-size": 10
    38. },
    39. },
    40. "scale-y": {
    41. "values": "0:400:200",
    42. "item": {
    43. "font-size": 10
    44. }
    45. },
    46. "plotarea": {
    47. "margin": "dynamic"
    48. },
    49. "series": [{
    50. "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]
    51. },
    52. {
    53. "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]
    54. },
    55. {
    56. "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]
    57. }
    58. ]
    59. },
    60. {
    61. "type": "line",
    62. "zoom": {
    63. "shared": true
    64. },
    65. "scroll-x": {
    66.  
    67. },
    68. legend: {
    69. shared: true
    70. },
    71. crosshairX: {
    72. shared: true
    73. },
    74. "scale-x": {
    75. "zooming": true,
    76. "zoom-to": [0, 21],
    77. "max-items": 11,
    78. "item": {
    79. "font-size": 10
    80. },
    81. },
    82. "scale-y": {
    83. "values": "0:400:200",
    84. "item": {
    85. "font-size": 10
    86. }
    87. },
    88. "plotarea": {
    89. "margin": "dynamic"
    90. },
    91. "series": [{
    92. "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]
    93. },
    94. {
    95. "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]
    96. },
    97. {
    98. "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]
    99. }
    100. ]
    101. },
    102. {
    103. "type": "line",
    104. "zoom": {
    105. "shared": true
    106. },
    107. "scroll-x": {
    108.  
    109. },
    110. legend: {
    111. shared: true
    112. },
    113. crosshairX: {
    114. shared: true
    115. },
    116. "scale-x": {
    117. "zooming": true,
    118. "zoom-to": [0, 21],
    119. "max-items": 11,
    120. "item": {
    121. "font-size": 10
    122. }
    123. },
    124. "scale-y": {
    125. "values": "0:400:200",
    126. "item": {
    127. "font-size": 10
    128. }
    129. },
    130. "plotarea": {
    131. "margin": "dynamic"
    132. },
    133. "series": [{
    134. "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]
    135. },
    136. {
    137. "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]
    138. },
    139. {
    140. "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]
    141. }
    142. ]
    143. }
    144. ]
    145. };
    146.  
    147. zingchart.render({
    148. id: 'myChart',
    149. data: myConfig,
    150. height: 400,
    151. width: "100%"
    152. });
    153. </script>
    154. </body>
    155.  
    156. </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. legend: {
    9. shared: true
    10. },
    11. crosshairX: {
    12. shared: true
    13. },
    14. "scroll-x": {
    15.  
    16. },
    17. "scale-x": {
    18. "zooming": true,
    19. "zoom-to": [0, 21],
    20. "max-items": 11,
    21. "item": {
    22. "font-size": 10
    23. },
    24. },
    25. "scale-y": {
    26. "values": "0:400:200",
    27. "item": {
    28. "font-size": 10
    29. }
    30. },
    31. "plotarea": {
    32. "margin": "dynamic"
    33. },
    34. "series": [{
    35. "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]
    36. },
    37. {
    38. "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]
    39. },
    40. {
    41. "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]
    42. }
    43. ]
    44. },
    45. {
    46. "type": "line",
    47. "zoom": {
    48. "shared": true
    49. },
    50. "scroll-x": {
    51.  
    52. },
    53. legend: {
    54. shared: true
    55. },
    56. crosshairX: {
    57. shared: true
    58. },
    59. "scale-x": {
    60. "zooming": true,
    61. "zoom-to": [0, 21],
    62. "max-items": 11,
    63. "item": {
    64. "font-size": 10
    65. },
    66. },
    67. "scale-y": {
    68. "values": "0:400:200",
    69. "item": {
    70. "font-size": 10
    71. }
    72. },
    73. "plotarea": {
    74. "margin": "dynamic"
    75. },
    76. "series": [{
    77. "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]
    78. },
    79. {
    80. "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]
    81. },
    82. {
    83. "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]
    84. }
    85. ]
    86. },
    87. {
    88. "type": "line",
    89. "zoom": {
    90. "shared": true
    91. },
    92. "scroll-x": {
    93.  
    94. },
    95. legend: {
    96. shared: true
    97. },
    98. crosshairX: {
    99. shared: true
    100. },
    101. "scale-x": {
    102. "zooming": true,
    103. "zoom-to": [0, 21],
    104. "max-items": 11,
    105. "item": {
    106. "font-size": 10
    107. }
    108. },
    109. "scale-y": {
    110. "values": "0:400:200",
    111. "item": {
    112. "font-size": 10
    113. }
    114. },
    115. "plotarea": {
    116. "margin": "dynamic"
    117. },
    118. "series": [{
    119. "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]
    120. },
    121. {
    122. "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]
    123. },
    124. {
    125. "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]
    126. }
    127. ]
    128. }
    129. ]
    130. };
    131.  
    132. zingchart.render({
    133. id: 'myChart',
    134. data: myConfig,
    135. height: 400,
    136. width: "100%"
    137. });