RadialGauge
This component is used to create a radial gauge.
Demo
Find a Demo here
Installation
Examples
Properties
min
number
min value of the gauge
max
number
max value of the gauge
value
number
value of the gauge
colors
Array<{ color: string, stopAt: number }>
colors array. color: name of the color. stopAt: length of color distribution. default is blue, green, yellow, red colors at equal length
label
() => JSX.Element
label no default value
legend
boolean
if true show legend. default is false
tickColor
string
color of the ticks. default is white
className
string
class name(s) for additional styling
styles
React.CSSProperties
additional inline styles
gradient
boolean
if true show gradient colors default is false
thickness
number
thickness of the gauge This value is defend on the radius default is radius * 0.11 max value is radius * 0.25 if you pass a higher value than the max value, max value will be used
largeTick
number
thickness of the large ticks default is 4 min value is 1 max value is 6 if the given value is higher than the max value, max values will be used
smallTick
number
thickness of the small ticks default is 1 min values is 1 max values is 3 if the given values is higher than the max value, max values will be used
min
min value of the gauge
number
max
max value of the gauge
number
value
value of the gauge
number
colors
colors array. color: name of the color. stopAt: length of color distribution.
default is blue, green, yellow, red colors at equal length
Array<{ color: string, stopAt: number }>
label
label no default value
() => JSX.Element
legend
if true show legend. default is false
boolean
tickColor
color of the ticks. default is white
string
className
class name(s) for additional styling
string
styles
additional inline styles
React.CSSProperties
gradient
if true show gradient colors default is false
boolean
thickness
thickness of the gauge This value is defend on the radius default is radius * 0.11 max value is radius * 0.25
if you pass a higher value than the max value, max value will be used
number
largeTick
thickness of the large ticks default is 4 min value is 1 max value is 6
if the given value is higher than the max value, max values will be used
number
smallTick
thickness of the small ticks default is 1 min values is 1 max values is 3
if the given values is higher than the max value, max values will be used
number
Last updated