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