• 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. mediaRules: [{
    41. maxWidth: 400,
    42. backgroundColor: 'red',
    43. borderColor: '#ffe6e6',
    44. fontColor: '#ffe6e6',
    45. }],
    46. }
    47. },
    48. series: [{
    49. 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],
    50. backgroundColor: '#F06292 #E91E63'
    51. }]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: chartConfig,
    57. height: '100%',
    58. width: '100%'
    59. });
    60. </script>
    61. </body>
    62.  
    63. </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. mediaRules: [{
    19. maxWidth: 400,
    20. backgroundColor: 'red',
    21. borderColor: '#ffe6e6',
    22. fontColor: '#ffe6e6',
    23. }],
    24. }
    25. },
    26. series: [{
    27. 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],
    28. backgroundColor: '#F06292 #E91E63'
    29. }]
    30. };
    31.  
    32. zingchart.render({
    33. id: 'myChart',
    34. data: chartConfig,
    35. height: '100%',
    36. width: '100%'
    37. });