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