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