• 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. },
    34. plotarea: {
    35. marginLeft: 'dynamic'
    36. },
    37. series: [{
    38. values: [
    39. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    40. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    41. ],
    42. backgroundColor: '#4CAF50 #8BC34A'
    43. }]
    44. };
    45.  
    46. zingchart.render({
    47. id: 'myChart',
    48. data: myConfig,
    49. height: 400,
    50. width: '100%'
    51. });
    52. </script>
    53. </body>
    54.  
    55. </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. },
    19. plotarea: {
    20. marginLeft: 'dynamic'
    21. },
    22. series: [{
    23. values: [
    24. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    25. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    26. ],
    27. backgroundColor: '#4CAF50 #8BC34A'
    28. }]
    29. };
    30.  
    31. zingchart.render({
    32. id: 'myChart',
    33. data: myConfig,
    34. height: 400,
    35. width: '100%'
    36. });