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