• 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. },
    24. preview: {
    25. active: {
    26. backgroundColor: '#FC0',
    27. alpha: 0.5,
    28.  
    29. mediaRules: [{
    30. maxWidth: 400,
    31. backgroundColor: 'red',
    32. }]
    33. }
    34. }
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: chartConfig,
    40. height: 400,
    41. width: '100%'
    42. });
    43. </script>
    44. </body>
    45.  
    46. </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. },
    9. preview: {
    10. active: {
    11. backgroundColor: '#FC0',
    12. alpha: 0.5,
    13.  
    14. mediaRules: [{
    15. maxWidth: 400,
    16. backgroundColor: 'red',
    17. }]
    18. }
    19. }
    20. };
    21.  
    22. zingchart.render({
    23. id: 'myChart',
    24. data: chartConfig,
    25. height: 400,
    26. width: '100%'
    27. });