• 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. legend: {
    19. footer: {
    20. text: 'Legend Footer',
    21. backgroundColor: '#f90',
    22.  
    23. mediaRules: [{
    24. maxWidth: 400,
    25. backgroundColor: 'red'
    26. }]
    27. }
    28. },
    29. plot: {},
    30. series: [{
    31. values: [11, 26, 7, 44, 11]
    32. },
    33. {
    34. values: [42, 13, 21, 15, 33]
    35. },
    36. {
    37. values: [23, 24, 13, 4, 18]
    38. }
    39. ]
    40. };
    41.  
    42. zingchart.render({
    43. id: 'myChart',
    44. data: chartConfig,
    45. height: 400,
    46. width: '100%'
    47. });
    48. </script>
    49. </body>
    50.  
    51. </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. legend: {
    4. footer: {
    5. text: 'Legend Footer',
    6. backgroundColor: '#f90',
    7.  
    8. mediaRules: [{
    9. maxWidth: 400,
    10. backgroundColor: 'red'
    11. }]
    12. }
    13. },
    14. plot: {},
    15. series: [{
    16. values: [11, 26, 7, 44, 11]
    17. },
    18. {
    19. values: [42, 13, 21, 15, 33]
    20. },
    21. {
    22. values: [23, 24, 13, 4, 18]
    23. }
    24. ]
    25. };
    26.  
    27. zingchart.render({
    28. id: 'myChart',
    29. data: chartConfig,
    30. height: 400,
    31. width: '100%'
    32. });