• 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. let chartConfig = {
    17. type: 'vbar',
    18. scrollY: {
    19. bar: {
    20. backgroundColor: '#8CF226',
    21. alpha: 0.3,
    22. height: 20,
    23.  
    24. mediaRules: [{
    25. maxWidth: 400,
    26. backgroundColor: 'red'
    27. }]
    28. },
    29. handle: {
    30. backgroundColor: '#8CF226'
    31. }
    32. },
    33. scaleX: {
    34. zooming: true,
    35. zoomTo: [0, 10]
    36. },
    37. scaleY: {
    38. zooming: true,
    39. zoomTo: [0, 15]
    40. },
    41. series: [{
    42. values: [11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13]
    43. }]
    44. };
    45.  
    46. zingchart.render({
    47. id: 'myChart',
    48. data: chartConfig,
    49. height: 400,
    50. width: '100%'
    51. });
    52. </script>
    53. </body>
    54.  
    55. </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. let chartConfig = {
    2. type: 'vbar',
    3. scrollY: {
    4. bar: {
    5. backgroundColor: '#8CF226',
    6. alpha: 0.3,
    7. height: 20,
    8.  
    9. mediaRules: [{
    10. maxWidth: 400,
    11. backgroundColor: 'red'
    12. }]
    13. },
    14. handle: {
    15. backgroundColor: '#8CF226'
    16. }
    17. },
    18. scaleX: {
    19. zooming: true,
    20. zoomTo: [0, 10]
    21. },
    22. scaleY: {
    23. zooming: true,
    24. zoomTo: [0, 15]
    25. },
    26. series: [{
    27. values: [11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13, 11, 26, 7, 44, 11, 28, 42, 26, 13]
    28. }]
    29. };
    30.  
    31. zingchart.render({
    32. id: 'myChart',
    33. data: chartConfig,
    34. height: 400,
    35. width: '100%'
    36. });