• 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. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. let chartConfig = {
    24. type: 'gauge',
    25. scaleR: {
    26. markers: [{
    27. type: 'area',
    28. range: [20, 40],
    29. KEY_REPLACE: 'VALUE_REPLACE',
    30. alpha: 1,
    31. backgroundColor: '#ff4d4d',
    32. borderColor: 'red',
    33. borderWidth: 1,
    34. offsetEnd: 0.1,
    35. offsetStart: 0.5
    36. }, {
    37. type: 'line',
    38. range: [60],
    39. KEY_REPLACE: 'VALUE_REPLACE',
    40. alpha: 1,
    41. lineColor: 'red',
    42. lineStyle: 'solid',
    43. lineWidth: 3
    44. }],
    45. values: '0:90:10'
    46. },
    47. series: [{
    48. values: [35]
    49. }]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: chartConfig,
    55. height: '100%',
    56. width: '100%'
    57. });
    58. </script>
    59. </body>
    60.  
    61. </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. }
    1. let chartConfig = {
    2. type: 'gauge',
    3. scaleR: {
    4. markers: [{
    5. type: 'area',
    6. range: [20, 40],
    7. KEY_REPLACE: 'VALUE_REPLACE',
    8. alpha: 1,
    9. backgroundColor: '#ff4d4d',
    10. borderColor: 'red',
    11. borderWidth: 1,
    12. offsetEnd: 0.1,
    13. offsetStart: 0.5
    14. }, {
    15. type: 'line',
    16. range: [60],
    17. KEY_REPLACE: 'VALUE_REPLACE',
    18. alpha: 1,
    19. lineColor: 'red',
    20. lineStyle: 'solid',
    21. lineWidth: 3
    22. }],
    23. values: '0:90:10'
    24. },
    25. series: [{
    26. values: [35]
    27. }]
    28. };
    29.  
    30. zingchart.render({
    31. id: 'myChart',
    32. data: chartConfig,
    33. height: '100%',
    34. width: '100%'
    35. });