• 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. labels: [{
    19. text: "Label 1",
    20. x: "15%",
    21. y: "5%",
    22. fontSize: "22px",
    23. borderWidth: "1px",
    24. padding: "5px",
    25. borderRadius: 10,
    26.  
    27. topState: {
    28. backgroundColor: 'red',
    29. offsetX: 10,
    30. offsetY: 10,
    31. },
    32. },
    33. {
    34. text: "Label<br>2",
    35. x: "55%",
    36. y: "10%",
    37. fontSize: "22px",
    38. fontStyle: 'italic',
    39. fontColor: '#fff',
    40. backgroundColor: "#00BAF0",
    41. padding: "10px",
    42. }
    43. ],
    44. "series": [{
    45. "values": [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23]
    46. },
    47. {
    48. "values": [30, 29, 4, 39, 24, 39, 9, 39, 2, 25, 26]
    49. }
    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. labels: [{
    4. text: "Label 1",
    5. x: "15%",
    6. y: "5%",
    7. fontSize: "22px",
    8. borderWidth: "1px",
    9. padding: "5px",
    10. borderRadius: 10,
    11.  
    12. topState: {
    13. backgroundColor: 'red',
    14. offsetX: 10,
    15. offsetY: 10,
    16. },
    17. },
    18. {
    19. text: "Label<br>2",
    20. x: "55%",
    21. y: "10%",
    22. fontSize: "22px",
    23. fontStyle: 'italic',
    24. fontColor: '#fff',
    25. backgroundColor: "#00BAF0",
    26. padding: "10px",
    27. }
    28. ],
    29. "series": [{
    30. "values": [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23]
    31. },
    32. {
    33. "values": [30, 29, 4, 39, 24, 39, 9, 39, 2, 25, 26]
    34. }
    35. ]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: myConfig,
    41. height: 400,
    42. width: '100%'
    43. });