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