• 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. highlightLegend: true,
    20.  
    21. item: {
    22. borderColor: 'red',
    23. borderStyle: 'solid',
    24. borderWidth: '1px',
    25. fontColor: 'red',
    26.  
    27. highlightState: {
    28. fontColor: '#a00',
    29. backgroundColor: '#ccc'
    30. },
    31.  
    32. mediaRules: [{
    33. maxWidth: 400,
    34. fontColor: 'blue'
    35. }],
    36. },
    37.  
    38. },
    39. plot: {},
    40. series: [{
    41. values: [11, 26, 7, 44, 11]
    42. },
    43. {
    44. values: [42, 13, 21, 15, 33]
    45. },
    46. {
    47. values: [23, 24, 13, 4, 18]
    48. }
    49. ]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: chartConfig,
    55. height: 400,
    56. width: '100%'
    57. });
    58. </script>
    59. </body>
    60.  
    61. </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. highlightLegend: true,
    5.  
    6. item: {
    7. borderColor: 'red',
    8. borderStyle: 'solid',
    9. borderWidth: '1px',
    10. fontColor: 'red',
    11.  
    12. highlightState: {
    13. fontColor: '#a00',
    14. backgroundColor: '#ccc'
    15. },
    16.  
    17. mediaRules: [{
    18. maxWidth: 400,
    19. fontColor: 'blue'
    20. }],
    21. },
    22.  
    23. },
    24. plot: {},
    25. series: [{
    26. values: [11, 26, 7, 44, 11]
    27. },
    28. {
    29. values: [42, 13, 21, 15, 33]
    30. },
    31. {
    32. values: [23, 24, 13, 4, 18]
    33. }
    34. ]
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: chartConfig,
    40. height: 400,
    41. width: '100%'
    42. });