• 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. plot: {
    26. valueBox: {
    27. backgroundColor: '#f90',
    28. borderColor: '#f60',
    29. borderRadius: -5,
    30. borderWidth: 2,
    31. callout: true,
    32. calloutHeight: 30,
    33. calloutPosition: 'bottom',
    34. calloutWidth: 0,
    35. padding: 10,
    36. shadow: true,
    37. calloutTip: {
    38. type: 'circle',
    39. backgroundColor: '#fff',
    40. borderWidth: 2,
    41. borderColor: '#f60',
    42. size: 5,
    43. }
    44. }
    45. },
    46. scaleX: {
    47. labels: ['Q1', 'Q2', 'Q3', 'Q4']
    48. },
    49. scaleY: {
    50. values: '0:100:25'
    51. },
    52. series: [{
    53. values: [30, 59, 33, 81]
    54. },
    55. {
    56. values: [34, 64, 40, 85]
    57. }
    58. ]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: chartConfig,
    64. height: 400,
    65. width: '100%'
    66. });
    67. </script>
    68. </body>
    69.  
    70. </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. plot: {
    4. valueBox: {
    5. backgroundColor: '#f90',
    6. borderColor: '#f60',
    7. borderRadius: -5,
    8. borderWidth: 2,
    9. callout: true,
    10. calloutHeight: 30,
    11. calloutPosition: 'bottom',
    12. calloutWidth: 0,
    13. padding: 10,
    14. shadow: true,
    15. calloutTip: {
    16. type: 'circle',
    17. backgroundColor: '#fff',
    18. borderWidth: 2,
    19. borderColor: '#f60',
    20. size: 5,
    21. }
    22. }
    23. },
    24. scaleX: {
    25. labels: ['Q1', 'Q2', 'Q3', 'Q4']
    26. },
    27. scaleY: {
    28. values: '0:100:25'
    29. },
    30. series: [{
    31. values: [30, 59, 33, 81]
    32. },
    33. {
    34. values: [34, 64, 40, 85]
    35. }
    36. ]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: chartConfig,
    42. height: 400,
    43. width: '100%'
    44. });