• 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. "type": "mixed",
    25. "title": {
    26. "text": "Range/Scatter Mixed Chart"
    27. },
    28. "scale-x": {
    29. "labels": ["M", "T", "W", "H", "F", "S/S"],
    30. "values": "0:5"
    31. },
    32. "scale-y": {
    33. "values": "0:100:25",
    34. "guide": {
    35. "visible": false
    36. }
    37. },
    38. "series": [{
    39. "type": "range",
    40. "values": [
    41. [9, 15],
    42. [15, 29],
    43. [5, 21],
    44. [30, 34],
    45. [34, 59],
    46. [30, 93]
    47. ],
    48. "aspect": "spline",
    49. "background-color": "#ff0066 #ff9966",
    50. "line-color": "#66CCFF",
    51. "line-width": 1,
    52. "marker": {
    53. "type": "none"
    54. }
    55. },
    56. {
    57. "type": "scatter",
    58. "values": [
    59. [0.3, 12],
    60. [0.5, 15],
    61. [1, 19],
    62. [1.5, 15],
    63. [1.7, 14],
    64. [2, 16],
    65. [3, 32],
    66. [3.3, 37],
    67. [3.4, 34],
    68. [4, 37],
    69. [4.2, 54],
    70. [4.3, 60],
    71. [4.4, 39],
    72. [4.5, 50],
    73. [4.5, 34],
    74. [4.6, 70],
    75. [4.7, 80],
    76. [4.8, 65],
    77. [4.8, 71],
    78. [4.9, 34]
    79. ],
    80. "marker": {
    81. "size": 4,
    82. "background-color": "#66CCFF #FFCCFF",
    83. "border-color": "white"
    84. }
    85. }
    86. ]
    87. };
    88.  
    89. zingchart.render({
    90. id: 'myChart',
    91. data: myConfig,
    92. height: "100%",
    93. width: "100%"
    94. });
    95. </script>
    96. </body>
    97.  
    98. </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. "type": "mixed",
    3. "title": {
    4. "text": "Range/Scatter Mixed Chart"
    5. },
    6. "scale-x": {
    7. "labels": ["M", "T", "W", "H", "F", "S/S"],
    8. "values": "0:5"
    9. },
    10. "scale-y": {
    11. "values": "0:100:25",
    12. "guide": {
    13. "visible": false
    14. }
    15. },
    16. "series": [{
    17. "type": "range",
    18. "values": [
    19. [9, 15],
    20. [15, 29],
    21. [5, 21],
    22. [30, 34],
    23. [34, 59],
    24. [30, 93]
    25. ],
    26. "aspect": "spline",
    27. "background-color": "#ff0066 #ff9966",
    28. "line-color": "#66CCFF",
    29. "line-width": 1,
    30. "marker": {
    31. "type": "none"
    32. }
    33. },
    34. {
    35. "type": "scatter",
    36. "values": [
    37. [0.3, 12],
    38. [0.5, 15],
    39. [1, 19],
    40. [1.5, 15],
    41. [1.7, 14],
    42. [2, 16],
    43. [3, 32],
    44. [3.3, 37],
    45. [3.4, 34],
    46. [4, 37],
    47. [4.2, 54],
    48. [4.3, 60],
    49. [4.4, 39],
    50. [4.5, 50],
    51. [4.5, 34],
    52. [4.6, 70],
    53. [4.7, 80],
    54. [4.8, 65],
    55. [4.8, 71],
    56. [4.9, 34]
    57. ],
    58. "marker": {
    59. "size": 4,
    60. "background-color": "#66CCFF #FFCCFF",
    61. "border-color": "white"
    62. }
    63. }
    64. ]
    65. };
    66.  
    67. zingchart.render({
    68. id: 'myChart',
    69. data: myConfig,
    70. height: "100%",
    71. width: "100%"
    72. });