Indicator
Name: Indicator (Pointer)
Description: Suitable for use with
Pie
to create simple gauge chartsUsage: Control the pointer position by setting the
value
parameter. The value range is from 0 to the total sum of the chartData
, corresponding to the angle range betweenstartAngle
andendAngle
. When used withPie
, it can correspond to the position of that value on thePie
.
params$
Type:
Partial<IndicatorParams>
Fields:
Name Description Type startAngle Starting angle of the indicator number
endAngle Ending angle of the indicator number
radius Radius of the indicator number
indicatorType Type of indicator 'line' | 'needle' | 'pin' | 'triangle'
size Size of the indicator number
colorType Color type ColorType
value Value of the indicator number
Detailed Types
type ColorType = 'none' | 'label' | 'labelContrast' | 'primary' | 'secondary' | 'background'
- Default values:
{
startAngle: - Math.PI / 2,
endAngle: Math.PI / 2,
radius: 0.6,
indicatorType: 'needle',
size: 10,
colorType: 'label',
value: 0,
}