• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <style>
    9. html,
    10. body {
    11. margin: 0;
    12. padding: 0;
    13. width: 100%;
    14. height: 100%;
    15. }
    16.  
    17. .chart--container {
    18. min-height: 150px;
    19. width: 100%;
    20. height: 100%;
    21. }
    22.  
    23. .zc-ref {
    24. display: none;
    25. }
    26. </style>
    27. </head>
    28.  
    29. <body>
    30. <!-- CHART CONTAINER -->
    31. <div id="myChart" class="chart--container">
    32. <a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
    33. </div>
    34. <script>
    35. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    36. window.addEventListener('load', () => {
    37.  
    38. let chartConfig = {
    39. type: 'scorecard',
    40. options: {
    41. palette: [
    42. ['#2196F3', '#3F51B5', '#42A5F5'],
    43. ['#5C6BC0', '#64B5F6', '#7986CB'],
    44. ['#90CAF9', '#9FA8DA', '#BBDEFB']
    45. ],
    46. value: {
    47. text: '1000'
    48. },
    49. bars: [{
    50. text: 'Team 1',
    51. value: 195,
    52. }, {
    53. text: 'Team 2',
    54. value: 498,
    55. }, {
    56. text: 'Team 3',
    57. value: 307
    58. }],
    59. title: {
    60. text: 'ZingPoints'
    61. },
    62. }
    63. };
    64.  
    65. // render chart
    66. zingchart.render({
    67. id: 'myChart',
    68. data: chartConfig,
    69. height: '80px',
    70. width: '320px',
    71. });
    72. });
    73. </script>
    74. </body>
    75.  
    76. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. </head>
    9.  
    10. <body>
    11. <!-- CHART CONTAINER -->
    12. <div id="myChart" class="chart--container">
    13. <a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
    14. </div>
    15. </body>
    16.  
    17. </html>
    1. html,
    2. body {
    3. margin: 0;
    4. padding: 0;
    5. width: 100%;
    6. height: 100%;
    7. }
    8.  
    9. .chart--container {
    10. min-height: 150px;
    11. width: 100%;
    12. height: 100%;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. window.addEventListener('load', () => {
    2.  
    3. let chartConfig = {
    4. type: 'scorecard',
    5. options: {
    6. palette: [
    7. ['#2196F3', '#3F51B5', '#42A5F5'],
    8. ['#5C6BC0', '#64B5F6', '#7986CB'],
    9. ['#90CAF9', '#9FA8DA', '#BBDEFB']
    10. ],
    11. value: {
    12. text: '1000'
    13. },
    14. bars: [{
    15. text: 'Team 1',
    16. value: 195,
    17. }, {
    18. text: 'Team 2',
    19. value: 498,
    20. }, {
    21. text: 'Team 3',
    22. value: 307
    23. }],
    24. title: {
    25. text: 'ZingPoints'
    26. },
    27. }
    28. };
    29.  
    30. // render chart
    31. zingchart.render({
    32. id: 'myChart',
    33. data: chartConfig,
    34. height: '80px',
    35. width: '320px',
    36. });
    37. });