• 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. "title": {
    19. "text": "Axis Lines"
    20. },
    21. "scale-x": {
    22. "labels": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
    23. "item": {
    24. "max-chars": 3
    25. },
    26. "line-color": "red",
    27. "line-width": 3,
    28. "line-style": "solid"
    29. },
    30. "scale-y": {
    31. "values": "0:100:20",
    32. "format": "%v%",
    33. "line-color": "red",
    34. "line-width": 3,
    35. "line-style": "solid"
    36. },
    37. "plot": {
    38. "stacked": true,
    39. "bar-width": "50%"
    40. },
    41. "plotarea": {
    42. "margin-left": "dynamic"
    43. },
    44. "series": [{
    45. "values": [43, 34, 51, 59, 65, 35, 31, 30, 35, 37, 45, 49]
    46. },
    47. {
    48. "values": [16, 15, 12, 14, 25, 29, 21, 19, 17, 16, 14, 20]
    49. },
    50. {
    51. "values": [3, 14, 3, 11, 5, 9, 12, 11, 15, 16, 19, 7]
    52. }
    53. ]
    54. };
    55.  
    56. zingchart.render({
    57. id: 'myChart',
    58. data: myConfig,
    59. height: 400,
    60. width: "100%"
    61. });
    62. </script>
    63. </body>
    64.  
    65. </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. "title": {
    4. "text": "Axis Lines"
    5. },
    6. "scale-x": {
    7. "labels": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
    8. "item": {
    9. "max-chars": 3
    10. },
    11. "line-color": "red",
    12. "line-width": 3,
    13. "line-style": "solid"
    14. },
    15. "scale-y": {
    16. "values": "0:100:20",
    17. "format": "%v%",
    18. "line-color": "red",
    19. "line-width": 3,
    20. "line-style": "solid"
    21. },
    22. "plot": {
    23. "stacked": true,
    24. "bar-width": "50%"
    25. },
    26. "plotarea": {
    27. "margin-left": "dynamic"
    28. },
    29. "series": [{
    30. "values": [43, 34, 51, 59, 65, 35, 31, 30, 35, 37, 45, 49]
    31. },
    32. {
    33. "values": [16, 15, 12, 14, 25, 29, 21, 19, 17, 16, 14, 20]
    34. },
    35. {
    36. "values": [3, 14, 3, 11, 5, 9, 12, 11, 15, 16, 19, 7]
    37. }
    38. ]
    39. };
    40.  
    41. zingchart.render({
    42. id: 'myChart',
    43. data: myConfig,
    44. height: 400,
    45. width: "100%"
    46. });