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