• 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. bottomState: {
    29. backgroundColor: 'blue',
    30. offsetX: 10,
    31. offsetY: 10,
    32. },
    33. }
    34. },
    35. series: [{
    36. values: [11, 26, 7, 44, 11]
    37. },
    38. {
    39. values: [42, 13, 21, 15, 33]
    40. },
    41. {
    42. values: [23, 24, 13, 4, 18]
    43. }
    44. ]
    45. };
    46.  
    47. zingchart.render({
    48. id: 'myChart',
    49. data: chartConfig,
    50. height: 400,
    51. width: '100%'
    52. });
    53. </script>
    54. </body>
    55.  
    56. </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. bottomState: {
    14. backgroundColor: 'blue',
    15. offsetX: 10,
    16. offsetY: 10,
    17. },
    18. }
    19. },
    20. series: [{
    21. values: [11, 26, 7, 44, 11]
    22. },
    23. {
    24. values: [42, 13, 21, 15, 33]
    25. },
    26. {
    27. values: [23, 24, 13, 4, 18]
    28. }
    29. ]
    30. };
    31.  
    32. zingchart.render({
    33. id: 'myChart',
    34. data: chartConfig,
    35. height: 400,
    36. width: '100%'
    37. });