• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. let chartConfig = {
    17. type: 'gauge',
    18. scaleR: {
    19. guide: {
    20. alpha: 1,
    21. backgroundColor: '#ffe6e6 #ff9999',
    22. lineColor: 'red',
    23. lineStyle: 'solid',
    24. lineWidth: 2,
    25. visible: true,
    26. rules: [{
    27. rule: '%i > 4',
    28. lineColor: 'blue'
    29. }]
    30. },
    31. values: '0:90:10'
    32. },
    33. series: [{
    34. values: [35]
    35. }]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: 400,
    42. width: '100%'
    43. });
    44. </script>
    45. </body>
    46.  
    47. </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.  
    1. let chartConfig = {
    2. type: 'gauge',
    3. scaleR: {
    4. guide: {
    5. alpha: 1,
    6. backgroundColor: '#ffe6e6 #ff9999',
    7. lineColor: 'red',
    8. lineStyle: 'solid',
    9. lineWidth: 2,
    10. visible: true,
    11. rules: [{
    12. rule: '%i > 4',
    13. lineColor: 'blue'
    14. }]
    15. },
    16. values: '0:90:10'
    17. },
    18. series: [{
    19. values: [35]
    20. }]
    21. };
    22.  
    23. zingchart.render({
    24. id: 'myChart',
    25. data: chartConfig,
    26. height: 400,
    27. width: '100%'
    28. });