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