• 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. }
    24. },
    25. series: [{
    26. values: [11, 16, 7, 14, 11, 24]
    27. },
    28. {
    29. values: [28, 35, 22, 35, 30, 46]
    30. },
    31. {
    32. values: [14, 21, 29, 19, 31, 26]
    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. legend: {},
    4. plot: {
    5. legendItem: {
    6. color: 'red',
    7. fontSize: 14
    8. }
    9. },
    10. series: [{
    11. values: [11, 16, 7, 14, 11, 24]
    12. },
    13. {
    14. values: [28, 35, 22, 35, 30, 46]
    15. },
    16. {
    17. values: [14, 21, 29, 19, 31, 26]
    18. }
    19. ]
    20. };
    21.  
    22. zingchart.render({
    23. id: 'myChart',
    24. data: chartConfig,
    25. height: 400,
    26. width: '100%'
    27. });