• 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: [10, 30],
    22.  
    23. alpha: 1,
    24. backgroundColor: '#ff4d4d',
    25. borderColor: 'red',
    26. borderWidth: 1,
    27. offsetEnd: 0.1,
    28. offsetStart: 0.5,
    29.  
    30. label: {
    31. text: 'Area Marker',
    32. mediaRules: [{
    33. maxWidth: 400,
    34. backgroundColor: '#b1b1ff',
    35. borderColor: 'blue',
    36. fontColor: 'blue'
    37. }],
    38.  
    39. alpha: 1,
    40. angle: 0,
    41. backgroundColor: '#ffe6e6',
    42. borderColor: 'red',
    43. borderRadius: '3px',
    44. borderWidth: 1,
    45. fontColor: 'red',
    46. fontFamily: 'Courier',
    47. fontSize: 10,
    48. fontStyle: 'normal',
    49. fontWeight: 'normal',
    50. lineStyle: 'solid',
    51. offsetR: 50,
    52. padding: 5,
    53. textAlign: 'left',
    54. textAlpha: 1,
    55. width: '100%'
    56. }
    57. },
    58. {
    59. type: 'line',
    60. range: [70],
    61.  
    62. alpha: 1,
    63. lineColor: 'red',
    64. lineStyle: 'solid',
    65. lineWidth: 3,
    66.  
    67. label: {
    68. text: 'Line Marker',
    69. mediaRules: [{
    70. maxWidth: 400,
    71. backgroundColor: '#b1b1ff',
    72. borderColor: 'blue',
    73. fontColor: 'blue'
    74. }],
    75.  
    76. alpha: 1,
    77. angle: 0,
    78. backgroundColor: '#ffe6e6',
    79. borderColor: 'red',
    80. borderRadius: '3px',
    81. borderWidth: 1,
    82. fontColor: 'red',
    83. fontFamily: 'Courier',
    84. fontSize: 10,
    85. fontStyle: 'normal',
    86. fontWeight: 'normal',
    87. lineStyle: 'solid',
    88. offsetR: -5,
    89. padding: 5,
    90. textAlign: 'left',
    91. textAlpha: 1,
    92. width: '100%',
    93. }
    94. }
    95. ],
    96. values: '0:90:10'
    97. },
    98. series: [{
    99. values: [35]
    100. }]
    101. };
    102.  
    103. zingchart.render({
    104. id: 'myChart',
    105. data: chartConfig,
    106. height: 400,
    107. width: '100%'
    108. });
    109. </script>
    110. </body>
    111.  
    112. </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: [10, 30],
    7.  
    8. alpha: 1,
    9. backgroundColor: '#ff4d4d',
    10. borderColor: 'red',
    11. borderWidth: 1,
    12. offsetEnd: 0.1,
    13. offsetStart: 0.5,
    14.  
    15. label: {
    16. text: 'Area Marker',
    17. mediaRules: [{
    18. maxWidth: 400,
    19. backgroundColor: '#b1b1ff',
    20. borderColor: 'blue',
    21. fontColor: 'blue'
    22. }],
    23.  
    24. alpha: 1,
    25. angle: 0,
    26. backgroundColor: '#ffe6e6',
    27. borderColor: 'red',
    28. borderRadius: '3px',
    29. borderWidth: 1,
    30. fontColor: 'red',
    31. fontFamily: 'Courier',
    32. fontSize: 10,
    33. fontStyle: 'normal',
    34. fontWeight: 'normal',
    35. lineStyle: 'solid',
    36. offsetR: 50,
    37. padding: 5,
    38. textAlign: 'left',
    39. textAlpha: 1,
    40. width: '100%'
    41. }
    42. },
    43. {
    44. type: 'line',
    45. range: [70],
    46.  
    47. alpha: 1,
    48. lineColor: 'red',
    49. lineStyle: 'solid',
    50. lineWidth: 3,
    51.  
    52. label: {
    53. text: 'Line Marker',
    54. mediaRules: [{
    55. maxWidth: 400,
    56. backgroundColor: '#b1b1ff',
    57. borderColor: 'blue',
    58. fontColor: 'blue'
    59. }],
    60.  
    61. alpha: 1,
    62. angle: 0,
    63. backgroundColor: '#ffe6e6',
    64. borderColor: 'red',
    65. borderRadius: '3px',
    66. borderWidth: 1,
    67. fontColor: 'red',
    68. fontFamily: 'Courier',
    69. fontSize: 10,
    70. fontStyle: 'normal',
    71. fontWeight: 'normal',
    72. lineStyle: 'solid',
    73. offsetR: -5,
    74. padding: 5,
    75. textAlign: 'left',
    76. textAlpha: 1,
    77. width: '100%',
    78. }
    79. }
    80. ],
    81. values: '0:90:10'
    82. },
    83. series: [{
    84. values: [35]
    85. }]
    86. };
    87.  
    88. zingchart.render({
    89. id: 'myChart',
    90. data: chartConfig,
    91. height: 400,
    92. width: '100%'
    93. });