Indicator
Name: Indicator (Pointer)
Description: Suitable for use with
Pieto create simple gauge chartsUsage: Control the pointer position by setting the
valueparameter. The value range is from 0 to the total sum of the chartData, corresponding to the angle range betweenstartAngleandendAngle. 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 numberendAngle Ending angle of the indicator numberradius Radius of the indicator numberindicatorType Type of indicator 'line' | 'needle' | 'pin' | 'triangle'size Size of the indicator numbercolorType Color type ColorTypevalue 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,
}