• 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. tooltip: {},
    41. options: {
    42. value: {
    43. text: '1,000'
    44. },
    45. title: {
    46. text: 'ZingPoints'
    47. },
    48. bars: [{
    49. text: 'Christopher',
    50. value: '675'
    51. },
    52. {
    53. text: 'Aaron',
    54. value: '50'
    55. },
    56. {
    57. text: 'Nick',
    58. value: '275'
    59. }
    60. ],
    61. icon: {
    62. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/clock.png',
    63. backgroundScale: 0.95
    64. }
    65. }
    66. };
    67.  
    68. // render chart
    69. zingchart.render({
    70. id: 'myChart',
    71. data: chartConfig,
    72. height: '80px',
    73. width: '320px',
    74. });
    75. });
    76. </script>
    77. </body>
    78.  
    79. </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. tooltip: {},
    6. options: {
    7. value: {
    8. text: '1,000'
    9. },
    10. title: {
    11. text: 'ZingPoints'
    12. },
    13. bars: [{
    14. text: 'Christopher',
    15. value: '675'
    16. },
    17. {
    18. text: 'Aaron',
    19. value: '50'
    20. },
    21. {
    22. text: 'Nick',
    23. value: '275'
    24. }
    25. ],
    26. icon: {
    27. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/clock.png',
    28. backgroundScale: 0.95
    29. }
    30. }
    31. };
    32.  
    33. // render chart
    34. zingchart.render({
    35. id: 'myChart',
    36. data: chartConfig,
    37. height: '80px',
    38. width: '320px',
    39. });
    40. });