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