Radial Gauge
A Radial Gauge in REAVIZ uses a radial scale to display a specific data point using a dial over a radial scale with defined limits. This type of gauge is ideal for showing how a value fits within a circular range.
Types supported by reaviz:
- Single - Displays a single data point on a radial scale.
- Stacked - Displays multiple data points stacked within the same radial gauge.
Where to use:
- Display Single Values: Ideal for showing a specific value within a circular range.
- Track Metrics: Useful for tracking performance metrics against a target.
- Compare Multiple Values: Great for comparing multiple values within the same gauge.
Quick Start
To create a Radial Gauge, use import the RadialGauge and give it data. The chart
will automatically configure itself with the default options exposed via props.
In this example, we only pass one data object, however, we can pass multiples and it will distribute the values across them.
Examples
Single
Stacked
API
RadialGaugeΒ
RadialGaugeSeriesΒ
StackedRadialGaugeSeriesΒ
RadialGaugeArcΒ
| Name | Type | Default |
|---|---|---|
id | stringID generated by the chart. | |
data | ChartShallowDataShapeData set by the | |
startAngle | numberStart angle set by the | |
endAngle | numberEnd angle set by the | |
innerRadius | numberInner radius set by the | |
outerRadius | numberOuter radius set by the | |
color | anyColor set by the | '#353d44' |
cornerRadius | numberCorner Radius of the arcs, see https://github.com/d3/d3-shape#arc_cornerRadiusΒ | 0 |
padAngle | numberPad Angle between adjacent arcs, see https://github.com/d3/d3-shape#arc_padAngleΒ | 0 |
padRadius | numberPad Radius between adjacent arcs, see https://github.com/d3/d3-shape#arc_padRadiusΒ | |
animated | booleanAnimation set by the | true |
disabled | booleanDisable the interactions. | false |
fill | stringFill the arc. | |
gradient | ReactElement<GradientProps, FC<Partial<GradientProps>>> | nullGradient shades for the bar. | |
tooltip | ReactElement<ChartTooltipProps, FC<Partial<ChartTooltipProps>>> | nullTooltip component. | `<ChartTooltip />` |
onClick | (event: any) => voidEvent for when the arc is clicked. | |
onMouseEnter | (event: any) => voidEvent for when the arc has mouse enter. | |
onMouseLeave | (event: any) => voidEvent for when the arc has mouse leave. |
RadialGaugeLabelΒ
StackedRadialGaugeValueLabelΒ
| Name | Type | Default |
|---|---|---|
label | stringA label shown at the center | |
className | stringA class name to apply | |
yOffset | numberA y offset to apply to the label | 0 |
StackedRadialGaugeDescriptionLabelΒ
| Name | Type | Default |
|---|---|---|
label | stringA label shown at the center | |
className | stringA class name to apply | |
yOffset | numberA y offset to apply to the label | 0 |