• 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: "bar",
    18. series: [{
    19. values: [35, 42, 67, 89, 25, 34, 67, 85]
    20. }],
    21. scaleX: {
    22. zooming: true,
    23. zoomTo: [1, 6]
    24. },
    25. scaleY: {
    26. zooming: true,
    27. zoomTo: [20, 70]
    28. },
    29. preview: {
    30. handleRight: {
    31. backgroundColor: '#F00',
    32. borderColor: '#FC0',
    33.  
    34. mediaRules: [{
    35. maxWidth: 400,
    36. backgroundColor: 'blue',
    37. borderColor: 'red'
    38. }]
    39. }
    40. }
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: chartConfig,
    46. height: 400,
    47. width: "100%"
    48. });
    49. </script>
    50. </body>
    51.  
    52. </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: "bar",
    3. series: [{
    4. values: [35, 42, 67, 89, 25, 34, 67, 85]
    5. }],
    6. scaleX: {
    7. zooming: true,
    8. zoomTo: [1, 6]
    9. },
    10. scaleY: {
    11. zooming: true,
    12. zoomTo: [20, 70]
    13. },
    14. preview: {
    15. handleRight: {
    16. backgroundColor: '#F00',
    17. borderColor: '#FC0',
    18.  
    19. mediaRules: [{
    20. maxWidth: 400,
    21. backgroundColor: 'blue',
    22. borderColor: 'red'
    23. }]
    24. }
    25. }
    26. };
    27.  
    28. zingchart.render({
    29. id: 'myChart',
    30. data: chartConfig,
    31. height: 400,
    32. width: "100%"
    33. });