• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. margin: 0;
    16. padding: 0;
    17. }
    18. </style>
    19. </head>
    20.  
    21. <body>
    22. <div id='myChart'></div>
    23. <script>
    24. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    25. var myConfig = {
    26. type: "gauge",
    27. series: [{
    28. values: [5],
    29. backgroundColor: "#941111"
    30. },
    31. {
    32. values: [15],
    33. backgroundColor: "#1b6d33"
    34. },
    35. {
    36. values: [35],
    37. backgroundColor: "#cc2ab2"
    38. }
    39. ]
    40. };
    41.  
    42. zingchart.render({
    43. id: 'myChart',
    44. data: myConfig,
    45. height: '100%',
    46. width: '100%'
    47. });
    48. </script>
    49. </body>
    50.  
    51. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. margin: 0;
    7. padding: 0;
    8. }
    1. var myConfig = {
    2. type: "gauge",
    3. series: [{
    4. values: [5],
    5. backgroundColor: "#941111"
    6. },
    7. {
    8. values: [15],
    9. backgroundColor: "#1b6d33"
    10. },
    11. {
    12. values: [35],
    13. backgroundColor: "#cc2ab2"
    14. }
    15. ]
    16. };
    17.  
    18. zingchart.render({
    19. id: 'myChart',
    20. data: myConfig,
    21. height: '100%',
    22. width: '100%'
    23. });