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