• 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. borderColor: '#333',
    20. borderEidth: '2px',
    21. maxItems: 1,
    22. overflow: 'page',
    23. pageStatus: {
    24. backgroundColor: 'red',
    25. borderRadius: 2,
    26. fontWeight: 'bold',
    27.  
    28. mediaRules: [{
    29. maxWidth: 400,
    30. backgroundColor: 'blue'
    31. }],
    32. }
    33. },
    34. series: [{
    35. values: [11, 26, 7, 44, 11]
    36. },
    37. {
    38. values: [42, 13, 21, 15, 33]
    39. },
    40. {
    41. values: [23, 24, 13, 4, 18]
    42. }
    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: 'bar',
    3. legend: {
    4. borderColor: '#333',
    5. borderEidth: '2px',
    6. maxItems: 1,
    7. overflow: 'page',
    8. pageStatus: {
    9. backgroundColor: 'red',
    10. borderRadius: 2,
    11. fontWeight: 'bold',
    12.  
    13. mediaRules: [{
    14. maxWidth: 400,
    15. backgroundColor: 'blue'
    16. }],
    17. }
    18. },
    19. series: [{
    20. values: [11, 26, 7, 44, 11]
    21. },
    22. {
    23. values: [42, 13, 21, 15, 33]
    24. },
    25. {
    26. values: [23, 24, 13, 4, 18]
    27. }
    28. ]
    29. };
    30.  
    31. zingchart.render({
    32. id: 'myChart',
    33. data: chartConfig,
    34. height: 400,
    35. width: '100%'
    36. });