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