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