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