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