• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. "graphset": [{
    25. "scale-x": {
    26. "zooming": 1
    27. },
    28. "arrows": [{
    29. "from": {
    30. "hook": "node:plot=2,index=1"
    31. },
    32. "to": {
    33. "hook": "node:plot=2,index=19"
    34. }
    35. }],
    36. "scale": {
    37. "size-factor": 0.9
    38. },
    39. "type": "scatter",
    40. "series": [{
    41. "values": [
    42. [0, 83],
    43. [1, 73],
    44. [2, 146],
    45. [3, 165],
    46. [4, 141],
    47. [5, 61],
    48. [6, 96],
    49. [7, 62],
    50. [8, 161],
    51. [9, 108],
    52. [10, 21],
    53. [11, 169],
    54. [12, 168],
    55. [13, 61],
    56. [14, 161],
    57. [15, 78],
    58. [16, 107],
    59. [17, 97],
    60. [18, 160],
    61. [19, 159],
    62. [20, 153]
    63. ]
    64. },
    65. {
    66. "values": [
    67. [0, 107],
    68. [1, 68],
    69. [2, 130],
    70. [3, 163],
    71. [4, 190],
    72. [5, 163],
    73. [6, 145],
    74. [7, 115],
    75. [8, 99],
    76. [9, 190],
    77. [10, 151],
    78. [11, 68],
    79. [12, 109],
    80. [13, 154],
    81. [14, 151],
    82. [15, 100],
    83. [16, 96],
    84. [17, 158],
    85. [18, 111],
    86. [19, 185],
    87. [20, 176]
    88. ]
    89. },
    90. {
    91. "values": [
    92. [0, 107],
    93. [1, 112],
    94. [2, 134],
    95. [3, 133],
    96. [4, 145],
    97. [5, 142],
    98. [6, 160],
    99. [7, 144],
    100. [8, 166],
    101. [9, 179],
    102. [10, 150],
    103. [11, 190],
    104. [12, 193],
    105. [13, 184],
    106. [14, 218],
    107. [15, 220],
    108. [16, 243],
    109. [17, 235],
    110. [18, 250],
    111. [19, 258],
    112. [20, 269]
    113. ]
    114. },
    115. {
    116. "values": [
    117. [0, 284],
    118. [1, 243],
    119. [2, 237],
    120. [3, 273],
    121. [4, 248],
    122. [5, 245],
    123. [6, 276],
    124. [7, 162],
    125. [8, 186],
    126. [9, 144],
    127. [10, 252],
    128. [11, 190],
    129. [12, 216],
    130. [13, 247],
    131. [14, 255],
    132. [15, 189],
    133. [16, 180],
    134. [17, 158],
    135. [18, 277],
    136. [19, 245],
    137. [20, 173]
    138. ]
    139. }
    140. ]
    141. }]
    142. };
    143.  
    144. zingchart.render({
    145. id: 'myChart',
    146. data: myConfig,
    147. height: "100%",
    148. width: "100%"
    149. });
    150. </script>
    151. </body>
    152.  
    153. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. "graphset": [{
    3. "scale-x": {
    4. "zooming": 1
    5. },
    6. "arrows": [{
    7. "from": {
    8. "hook": "node:plot=2,index=1"
    9. },
    10. "to": {
    11. "hook": "node:plot=2,index=19"
    12. }
    13. }],
    14. "scale": {
    15. "size-factor": 0.9
    16. },
    17. "type": "scatter",
    18. "series": [{
    19. "values": [
    20. [0, 83],
    21. [1, 73],
    22. [2, 146],
    23. [3, 165],
    24. [4, 141],
    25. [5, 61],
    26. [6, 96],
    27. [7, 62],
    28. [8, 161],
    29. [9, 108],
    30. [10, 21],
    31. [11, 169],
    32. [12, 168],
    33. [13, 61],
    34. [14, 161],
    35. [15, 78],
    36. [16, 107],
    37. [17, 97],
    38. [18, 160],
    39. [19, 159],
    40. [20, 153]
    41. ]
    42. },
    43. {
    44. "values": [
    45. [0, 107],
    46. [1, 68],
    47. [2, 130],
    48. [3, 163],
    49. [4, 190],
    50. [5, 163],
    51. [6, 145],
    52. [7, 115],
    53. [8, 99],
    54. [9, 190],
    55. [10, 151],
    56. [11, 68],
    57. [12, 109],
    58. [13, 154],
    59. [14, 151],
    60. [15, 100],
    61. [16, 96],
    62. [17, 158],
    63. [18, 111],
    64. [19, 185],
    65. [20, 176]
    66. ]
    67. },
    68. {
    69. "values": [
    70. [0, 107],
    71. [1, 112],
    72. [2, 134],
    73. [3, 133],
    74. [4, 145],
    75. [5, 142],
    76. [6, 160],
    77. [7, 144],
    78. [8, 166],
    79. [9, 179],
    80. [10, 150],
    81. [11, 190],
    82. [12, 193],
    83. [13, 184],
    84. [14, 218],
    85. [15, 220],
    86. [16, 243],
    87. [17, 235],
    88. [18, 250],
    89. [19, 258],
    90. [20, 269]
    91. ]
    92. },
    93. {
    94. "values": [
    95. [0, 284],
    96. [1, 243],
    97. [2, 237],
    98. [3, 273],
    99. [4, 248],
    100. [5, 245],
    101. [6, 276],
    102. [7, 162],
    103. [8, 186],
    104. [9, 144],
    105. [10, 252],
    106. [11, 190],
    107. [12, 216],
    108. [13, 247],
    109. [14, 255],
    110. [15, 189],
    111. [16, 180],
    112. [17, 158],
    113. [18, 277],
    114. [19, 245],
    115. [20, 173]
    116. ]
    117. }
    118. ]
    119. }]
    120. };
    121.  
    122. zingchart.render({
    123. id: 'myChart',
    124. data: myConfig,
    125. height: "100%",
    126. width: "100%"
    127. });