RacingBars
Name: Racing Bars
Description: Built-in counter to display data from the first to the last value.
params$
Type:
DeepPartial<RacingBarsParams>Fields:
Name Description Type bar Settings for the bars ObjectbarLabel Settings for the labelof the dataObjectvalueLabel Settings for the valueof the dataObjectaxisLabel Settings for the X-axis label ObjectrankingAmount Number of items to display, default is 10. If set to 'auto', all data will be displayed if there is enough space'auto' | numberautorun Auto-run state, default is stopped. Set to trueto start runningbooleanloop Set to repeat the race booleanparams.barName Description Type barWidth Width of each bar numberbarPadding Padding between bars numberbarRadius Radius of bar corners number | booleanparams.barLabelName Description Type position Position of the label 'inside' | 'outside' | 'none'padding Padding numbercolorType Color type of the label ColorTypeparams.valueLabelName Description Type padding Padding numbercolorType Color type of the label ColorTypeformat Function to format the label text string | ((text: d3.NumberValue) => string | d3.NumberValueparams.axisLabelName Description Type offset Position of the axis label [number, number]colorType Color type of the label ColorType
Detailed Types
type ColorType = 'none' | 'label' | 'labelContrast' | 'primary' | 'secondary' | 'background'
- Default values:
{
bar: {
barWidth: number
barPadding: number
barRadius: number | boolean
}
barLabel: {
position: 'inside' | 'outside' | 'none'
padding: number
rotate: number
colorType: ColorType
}
valueLabel: {
padding: number
colorType: ColorType
format: string | ((text: d3.NumberValue | null) => string | d3.NumberValue)
}
axisLabel: {
offset: [number, number]
colorType: ColorType
}
rankingAmount: 'auto' | number
autorun: boolean
loop: boolean
}