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