• 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 myConfig = {
    17. "type": "area",
    18. "preview": {
    19. "alpha": 0.5,
    20. "background-color": "#ccccff",
    21. "border-color": "#6666ff",
    22. "border-width": 5,
    23. "height": "20%",
    24. "width": "100%",
    25. "x": "8%",
    26. "y": "5%"
    27. },
    28. "plotarea": {
    29. "margin-top": "35%",
    30. "margin-bottom": "10%"
    31. },
    32. "scale-x": {
    33. "zooming": true,
    34. "item": {
    35. "font-size": 10
    36. }
    37. },
    38. "scale-y": {
    39. "zooming": true,
    40. "values": "0:350:50",
    41. "guide": {
    42. "line-style": "dotted"
    43. },
    44. "item": {
    45. "font-size": 10
    46. }
    47. },
    48. "plot": {
    49. "line-width": 1,
    50. "line-color": "#4d9900",
    51. "background-color": "#4d9900",
    52. "marker": {
    53. "size": 3,
    54. "background-color": "#ccccff #6666ff",
    55. "border-width": 1,
    56. "border-color": "#4d9900"
    57. },
    58. "tooltip": {
    59. "visible": false
    60. }
    61. },
    62. "crosshair-x": {
    63. "plot-label": {
    64. "text": "%v"
    65. },
    66. "scale-label": {
    67. "visible": false
    68. }
    69. },
    70. "crosshair-y": {
    71. "type": "multiple",
    72. "scale-label": {
    73. "visible": false
    74. }
    75. },
    76. "series": [{
    77. "values": [
    78. 138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2,
    79. 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3,
    80. 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3,
    81. 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2,
    82. 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7,
    83. 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4,
    84. 279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5,
    85. 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2,
    86. 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7,
    87. 237.2, 208.1, 262.7, 292.8, 249.2, 242.6, 284.4, 246.7, 275.9, 274.5,
    88. 234.2
    89. ]
    90. }]
    91. };
    92.  
    93. zingchart.render({
    94. id: 'myChart',
    95. data: myConfig,
    96. height: 400,
    97. width: "100%"
    98. });
    99. </script>
    100. </body>
    101.  
    102. </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 myConfig = {
    2. "type": "area",
    3. "preview": {
    4. "alpha": 0.5,
    5. "background-color": "#ccccff",
    6. "border-color": "#6666ff",
    7. "border-width": 5,
    8. "height": "20%",
    9. "width": "100%",
    10. "x": "8%",
    11. "y": "5%"
    12. },
    13. "plotarea": {
    14. "margin-top": "35%",
    15. "margin-bottom": "10%"
    16. },
    17. "scale-x": {
    18. "zooming": true,
    19. "item": {
    20. "font-size": 10
    21. }
    22. },
    23. "scale-y": {
    24. "zooming": true,
    25. "values": "0:350:50",
    26. "guide": {
    27. "line-style": "dotted"
    28. },
    29. "item": {
    30. "font-size": 10
    31. }
    32. },
    33. "plot": {
    34. "line-width": 1,
    35. "line-color": "#4d9900",
    36. "background-color": "#4d9900",
    37. "marker": {
    38. "size": 3,
    39. "background-color": "#ccccff #6666ff",
    40. "border-width": 1,
    41. "border-color": "#4d9900"
    42. },
    43. "tooltip": {
    44. "visible": false
    45. }
    46. },
    47. "crosshair-x": {
    48. "plot-label": {
    49. "text": "%v"
    50. },
    51. "scale-label": {
    52. "visible": false
    53. }
    54. },
    55. "crosshair-y": {
    56. "type": "multiple",
    57. "scale-label": {
    58. "visible": false
    59. }
    60. },
    61. "series": [{
    62. "values": [
    63. 138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2,
    64. 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3,
    65. 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3,
    66. 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2,
    67. 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7,
    68. 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4,
    69. 279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5,
    70. 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2,
    71. 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7,
    72. 237.2, 208.1, 262.7, 292.8, 249.2, 242.6, 284.4, 246.7, 275.9, 274.5,
    73. 234.2
    74. ]
    75. }]
    76. };
    77.  
    78. zingchart.render({
    79. id: 'myChart',
    80. data: myConfig,
    81. height: 400,
    82. width: "100%"
    83. });