• 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 myConfig7 = {
    17. "type": "scatter",
    18. "scale-x": {
    19. "label": {
    20. "text": "Scatter Chart with a Linear Scale"
    21. },
    22. "values": "0:10:1",
    23. "decimals": 1
    24. },
    25. "scale-y": {
    26. "values": "0:100:50",
    27. },
    28. "series": [{
    29. "values": [
    30. [1, 9],
    31. [2, 15],
    32. [3, 21],
    33. [4, 30],
    34. [5, 40],
    35. [6, 59],
    36. [7, 60],
    37. [8, 75],
    38. [9, 81],
    39. [10, 99]
    40. ],
    41. "marker": {
    42. "type": "ellipse"
    43. }
    44. },
    45. {
    46. "values": [
    47. [0.9, 3],
    48. [2.1, 13],
    49. [3.5, 25],
    50. [4.9, 35],
    51. [5.3, 41],
    52. [6.5, 57],
    53. [7.1, 61],
    54. [8.7, 70],
    55. [9.2, 82],
    56. [9.9, 95]
    57. ],
    58. "marker": {
    59. "type": "rpoly9"
    60. }
    61. },
    62. {
    63. "values": [
    64. [0.1, 9],
    65. [1.8, 21],
    66. [1.9, 29],
    67. [4.1, 33],
    68. [4.5, 39],
    69. [6.9, 51],
    70. [7.4, 64],
    71. [8.9, 70],
    72. [9, 75],
    73. [9.3, 93]
    74. ],
    75. "marker": {
    76. "type": "plus"
    77. }
    78. },
    79. {
    80. "values": [
    81. [0.3, 11],
    82. [0.9, 15],
    83. [1.1, 24],
    84. [2.3, 29],
    85. [2.9, 30],
    86. [3.3, 35],
    87. [5.6, 67],
    88. [6.9, 70],
    89. [7.3, 71],
    90. [8.9, 90]
    91. ],
    92. "marker": {
    93. "type": "circle"
    94. }
    95. },
    96. {
    97. "values": [
    98. [0.5, 5],
    99. [1.9, 5],
    100. [2.5, 10],
    101. [3.1, 30],
    102. [6.5, 45],
    103. [6.9, 74],
    104. [7.2, 50],
    105. [7.8, 56],
    106. [8, 61],
    107. [8.5, 71]
    108. ],
    109. "marker": {
    110. "type": "star9"
    111. }
    112. },
    113. ]
    114. };
    115.  
    116. zingchart.render({
    117. id: 'myChart',
    118. data: myConfig7,
    119. height: 400,
    120. width: "100%"
    121. });
    122. </script>
    123. </body>
    124.  
    125. </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 myConfig7 = {
    2. "type": "scatter",
    3. "scale-x": {
    4. "label": {
    5. "text": "Scatter Chart with a Linear Scale"
    6. },
    7. "values": "0:10:1",
    8. "decimals": 1
    9. },
    10. "scale-y": {
    11. "values": "0:100:50",
    12. },
    13. "series": [{
    14. "values": [
    15. [1, 9],
    16. [2, 15],
    17. [3, 21],
    18. [4, 30],
    19. [5, 40],
    20. [6, 59],
    21. [7, 60],
    22. [8, 75],
    23. [9, 81],
    24. [10, 99]
    25. ],
    26. "marker": {
    27. "type": "ellipse"
    28. }
    29. },
    30. {
    31. "values": [
    32. [0.9, 3],
    33. [2.1, 13],
    34. [3.5, 25],
    35. [4.9, 35],
    36. [5.3, 41],
    37. [6.5, 57],
    38. [7.1, 61],
    39. [8.7, 70],
    40. [9.2, 82],
    41. [9.9, 95]
    42. ],
    43. "marker": {
    44. "type": "rpoly9"
    45. }
    46. },
    47. {
    48. "values": [
    49. [0.1, 9],
    50. [1.8, 21],
    51. [1.9, 29],
    52. [4.1, 33],
    53. [4.5, 39],
    54. [6.9, 51],
    55. [7.4, 64],
    56. [8.9, 70],
    57. [9, 75],
    58. [9.3, 93]
    59. ],
    60. "marker": {
    61. "type": "plus"
    62. }
    63. },
    64. {
    65. "values": [
    66. [0.3, 11],
    67. [0.9, 15],
    68. [1.1, 24],
    69. [2.3, 29],
    70. [2.9, 30],
    71. [3.3, 35],
    72. [5.6, 67],
    73. [6.9, 70],
    74. [7.3, 71],
    75. [8.9, 90]
    76. ],
    77. "marker": {
    78. "type": "circle"
    79. }
    80. },
    81. {
    82. "values": [
    83. [0.5, 5],
    84. [1.9, 5],
    85. [2.5, 10],
    86. [3.1, 30],
    87. [6.5, 45],
    88. [6.9, 74],
    89. [7.2, 50],
    90. [7.8, 56],
    91. [8, 61],
    92. [8.5, 71]
    93. ],
    94. "marker": {
    95. "type": "star9"
    96. }
    97. },
    98. ]
    99. };
    100.  
    101. zingchart.render({
    102. id: 'myChart',
    103. data: myConfig7,
    104. height: 400,
    105. width: "100%"
    106. });