• 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. mediaRules: [{
    28. maxWidth: 400,
    29. backgroundColor: 'red',
    30. }],
    31. },
    32. {
    33. text: "Label<br>2",
    34. x: "55%",
    35. y: "10%",
    36. fontSize: "22px",
    37. fontStyle: 'italic',
    38. fontColor: '#fff',
    39. backgroundColor: "#00BAF0",
    40. padding: "10px",
    41. }
    42. ],
    43. "series": [{
    44. "values": [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23]
    45. },
    46. {
    47. "values": [30, 29, 4, 39, 24, 39, 9, 39, 2, 25, 26]
    48. }
    49. ]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: myConfig,
    55. height: 400,
    56. width: '100%'
    57. });
    58. </script>
    59. </body>
    60.  
    61. </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. mediaRules: [{
    13. maxWidth: 400,
    14. backgroundColor: 'red',
    15. }],
    16. },
    17. {
    18. text: "Label<br>2",
    19. x: "55%",
    20. y: "10%",
    21. fontSize: "22px",
    22. fontStyle: 'italic',
    23. fontColor: '#fff',
    24. backgroundColor: "#00BAF0",
    25. padding: "10px",
    26. }
    27. ],
    28. "series": [{
    29. "values": [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23]
    30. },
    31. {
    32. "values": [30, 29, 4, 39, 24, 39, 9, 39, 2, 25, 26]
    33. }
    34. ]
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: myConfig,
    40. height: 400,
    41. width: '100%'
    42. });