• 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. scaleX: {
    19. label: {
    20. text: 'ScaleX Label',
    21. backgroundColor: '#ffe6e6',
    22. borderColor: 'red',
    23. borderRadius: 3,
    24. borderWidth: 1,
    25. fontColor: 'red',
    26. fontFamily: 'Georgia',
    27. fontSize: 16,
    28. fontStyle: 'normal',
    29. fontWeight: 'normal',
    30. padding: '5px 20px',
    31.  
    32. mediaRules: [{
    33. maxWidth: 400,
    34. backgroundColor: 'red',
    35. borderColor: '#ffe6e6',
    36. fontColor: '#ffe6e6',
    37. }]
    38. }
    39. },
    40. scaleY: {
    41.  
    42. },
    43. series: [{
    44. values: [
    45. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    46. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    47. ],
    48. backgroundColor: '#4CAF50 #8BC34A'
    49. }]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: chartConfig,
    55. height: 350,
    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. scaleX: {
    4. label: {
    5. text: 'ScaleX Label',
    6. backgroundColor: '#ffe6e6',
    7. borderColor: 'red',
    8. borderRadius: 3,
    9. borderWidth: 1,
    10. fontColor: 'red',
    11. fontFamily: 'Georgia',
    12. fontSize: 16,
    13. fontStyle: 'normal',
    14. fontWeight: 'normal',
    15. padding: '5px 20px',
    16.  
    17. mediaRules: [{
    18. maxWidth: 400,
    19. backgroundColor: 'red',
    20. borderColor: '#ffe6e6',
    21. fontColor: '#ffe6e6',
    22. }]
    23. }
    24. },
    25. scaleY: {
    26.  
    27. },
    28. series: [{
    29. values: [
    30. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    31. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    32. ],
    33. backgroundColor: '#4CAF50 #8BC34A'
    34. }]
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: chartConfig,
    40. height: 350,
    41. width: '100%'
    42. });