• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. let chartConfig = {
    24. type: 'bar',
    25. title: {
    26. text: 'Hover over the scaleY items to see the tooltips.',
    27. fontSize: 14
    28. },
    29. scaleX: {},
    30. scaleY: {
    31. tooltip: {
    32. text: 'Scale Value: %v',
    33. backgroundColor: '#ffe6e6',
    34. borderColor: 'red',
    35. borderRadius: 3,
    36. borderWidth: 1,
    37. fontColor: 'red',
    38. fontFamily: 'Georgia',
    39. padding: '5px 10px',
    40. topState: {
    41. backgroundColor: 'red',
    42. offsetX: '10px',
    43. offsetY: '10px',
    44. },
    45. }
    46. },
    47. series: [{
    48. values: [38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2, 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3],
    49. backgroundColor: '#F06292 #E91E63'
    50. }]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: chartConfig,
    56. height: '100%',
    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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. let chartConfig = {
    2. type: 'bar',
    3. title: {
    4. text: 'Hover over the scaleY items to see the tooltips.',
    5. fontSize: 14
    6. },
    7. scaleX: {},
    8. scaleY: {
    9. tooltip: {
    10. text: 'Scale Value: %v',
    11. backgroundColor: '#ffe6e6',
    12. borderColor: 'red',
    13. borderRadius: 3,
    14. borderWidth: 1,
    15. fontColor: 'red',
    16. fontFamily: 'Georgia',
    17. padding: '5px 10px',
    18. topState: {
    19. backgroundColor: 'red',
    20. offsetX: '10px',
    21. offsetY: '10px',
    22. },
    23. }
    24. },
    25. series: [{
    26. values: [38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2, 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3],
    27. backgroundColor: '#F06292 #E91E63'
    28. }]
    29. };
    30.  
    31. zingchart.render({
    32. id: 'myChart',
    33. data: chartConfig,
    34. height: '100%',
    35. width: '100%'
    36. });