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