• 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. tooltip: {
    51. backgroundColor: 'red',
    52. mediaRules: [{
    53. maxWidth: 400,
    54. backgroundColor: 'blue'
    55. }]
    56. }
    57. },
    58. {
    59. text: 'Aaron',
    60. value: '50'
    61. },
    62. {
    63. text: 'Nick',
    64. value: '275'
    65. }
    66. ]
    67. }
    68. };
    69.  
    70. // render chart
    71. zingchart.render({
    72. id: 'myChart',
    73. data: chartConfig,
    74. height: '80px',
    75. width: '100%',
    76. });
    77. });
    78. </script>
    79. </body>
    80.  
    81. </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. tooltip: {
    16. backgroundColor: 'red',
    17. mediaRules: [{
    18. maxWidth: 400,
    19. backgroundColor: 'blue'
    20. }]
    21. }
    22. },
    23. {
    24. text: 'Aaron',
    25. value: '50'
    26. },
    27. {
    28. text: 'Nick',
    29. value: '275'
    30. }
    31. ]
    32. }
    33. };
    34.  
    35. // render chart
    36. zingchart.render({
    37. id: 'myChart',
    38. data: chartConfig,
    39. height: '80px',
    40. width: '100%',
    41. });
    42. });