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