• 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. callout: true,
    41. calloutHeight: 15,
    42. calloutPosition: 'bottom',
    43. calloutWidth: 0,
    44. calloutTip: {
    45. type: 'circle',
    46. backgroundColor: '#fff',
    47. borderWidth: 2,
    48. borderColor: '#f60',
    49. offsetY: 5,
    50. size: 5,
    51. },
    52. }
    53. },
    54. series: [{
    55. 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],
    56. backgroundColor: '#F06292 #E91E63'
    57. }]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: chartConfig,
    63. height: '100%',
    64. width: '100%'
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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. callout: true,
    19. calloutHeight: 15,
    20. calloutPosition: 'bottom',
    21. calloutWidth: 0,
    22. calloutTip: {
    23. type: 'circle',
    24. backgroundColor: '#fff',
    25. borderWidth: 2,
    26. borderColor: '#f60',
    27. offsetY: 5,
    28. size: 5,
    29. },
    30. }
    31. },
    32. series: [{
    33. 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],
    34. backgroundColor: '#F06292 #E91E63'
    35. }]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: '100%',
    42. width: '100%'
    43. });