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