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