• 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. ring: {
    20. alpha: 1,
    21. backgroundColor: '#ffe6e6',
    22. borderColor: 'red',
    23. borderWidth: 2,
    24. lineStyle: 'solid',
    25. size: 35,
    26.  
    27. bottomState: {
    28. backgroundColor: 'blue',
    29. offsetX: 10,
    30. offsetY: 10,
    31. }
    32. },
    33. values: '0:90:10'
    34. },
    35. series: [{
    36. values: [35]
    37. }]
    38. };
    39.  
    40. zingchart.render({
    41. id: 'myChart',
    42. data: chartConfig,
    43. height: 400,
    44. width: '100%'
    45. });
    46. </script>
    47. </body>
    48.  
    49. </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. ring: {
    5. alpha: 1,
    6. backgroundColor: '#ffe6e6',
    7. borderColor: 'red',
    8. borderWidth: 2,
    9. lineStyle: 'solid',
    10. size: 35,
    11.  
    12. bottomState: {
    13. backgroundColor: 'blue',
    14. offsetX: 10,
    15. offsetY: 10,
    16. }
    17. },
    18. values: '0:90:10'
    19. },
    20. series: [{
    21. values: [35]
    22. }]
    23. };
    24.  
    25. zingchart.render({
    26. id: 'myChart',
    27. data: chartConfig,
    28. height: 400,
    29. width: '100%'
    30. });