• 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 scaleX items to see the tooltips.',
    27. fontSize: 14
    28. },
    29. scaleX: {
    30. tooltip: {
    31. text: 'Scale Value: %v',
    32. backgroundColor: '#ffe6e6',
    33. borderColor: 'red',
    34. borderRadius: 3,
    35. borderWidth: 1,
    36. fontColor: 'red',
    37. fontFamily: 'Georgia',
    38. padding: '5px 10px',
    39. callout: true,
    40. calloutHeight: 15,
    41. calloutPosition: 'bottom',
    42. calloutWidth: 0,
    43. calloutTip: {
    44. type: 'circle',
    45. backgroundColor: '#fff',
    46. borderWidth: 2,
    47. borderColor: '#f60',
    48. offsetY: 5,
    49. size: 5,
    50. },
    51. }
    52. },
    53. scaleY: {},
    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 scaleX items to see the tooltips.',
    5. fontSize: 14
    6. },
    7. scaleX: {
    8. tooltip: {
    9. text: 'Scale Value: %v',
    10. backgroundColor: '#ffe6e6',
    11. borderColor: 'red',
    12. borderRadius: 3,
    13. borderWidth: 1,
    14. fontColor: 'red',
    15. fontFamily: 'Georgia',
    16. padding: '5px 10px',
    17. callout: true,
    18. calloutHeight: 15,
    19. calloutPosition: 'bottom',
    20. calloutWidth: 0,
    21. calloutTip: {
    22. type: 'circle',
    23. backgroundColor: '#fff',
    24. borderWidth: 2,
    25. borderColor: '#f60',
    26. offsetY: 5,
    27. size: 5,
    28. },
    29. }
    30. },
    31. scaleY: {},
    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. });