• 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>
    10. html,
    11. body {
    12. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23. </style>
    24. </head>
    25.  
    26. <body>
    27. <div id='myChart'></div>
    28. <script>
    29. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    30. var myConfig = {
    31. type: "bar",
    32. title: {
    33. text: 'Try and Click and Drag on the plotarea(orange) to zoom'
    34. },
    35. plotarea: {
    36. backgroundColor: '#FF9800'
    37. },
    38. scaleX: {
    39. zooming: true
    40. },
    41. zoom: {
    42. active: false
    43. },
    44. preview: {},
    45. series: [{
    46. values: [35, 42, 67, 89, 25, 34, 67, 85]
    47. }]
    48. };
    49.  
    50. zingchart.render({
    51. id: 'myChart',
    52. data: myConfig,
    53. height: '100%',
    54. width: '100%'
    55. });
    56. </script>
    57. </body>
    58.  
    59. </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. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    1. var myConfig = {
    2. type: "bar",
    3. title: {
    4. text: 'Try and Click and Drag on the plotarea(orange) to zoom'
    5. },
    6. plotarea: {
    7. backgroundColor: '#FF9800'
    8. },
    9. scaleX: {
    10. zooming: true
    11. },
    12. zoom: {
    13. active: false
    14. },
    15. preview: {},
    16. series: [{
    17. values: [35, 42, 67, 89, 25, 34, 67, 85]
    18. }]
    19. };
    20.  
    21. zingchart.render({
    22. id: 'myChart',
    23. data: myConfig,
    24. height: '100%',
    25. width: '100%'
    26. });