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