API reference: @salmonui/charts/chart/bullet
BulletChartPropsinterface
import type { BulletChartProps } from '@salmonui/charts/chart/bullet';interface BulletChartProps extends Pick<ChartProps, 'title' | 'subtitle' | 'description' | 'locale' | 'timeZone' | 'width' | 'height' | 'className' | 'style' | 'accessibleTable' | 'showDataTable' | 'animated' | 'onPointClick' | 'exportWriters'> {
readonly data: readonly ChartDatum[];
readonly valueField: string;
readonly targetField?: string | readonly string[] | undefined;
readonly categoryField?: string | undefined;
readonly bands?: readonly BulletBand[] | undefined;
readonly targetShapes?: readonly ('line' | 'circle' | 'cross')[] | undefined;
readonly valueShape?: 'bar' | 'dot' | undefined;
readonly orientation?: 'horizontal' | 'vertical' | undefined;
readonly axisPosition?: 'start' | 'end' | undefined;
readonly min?: number | undefined;
readonly max?: number | undefined;
readonly interval?: number | undefined;
readonly minorTicks?: number | undefined;
readonly format?: ChartFormat | undefined;
readonly labelPosition?: 'inside' | 'outside' | undefined;
readonly tickPosition?: 'inside' | 'outside' | undefined;
readonly labels?: boolean | {
readonly format?: ChartFormat | undefined;
} | undefined;
readonly tooltip?: ChartProps['tooltip'];
readonly legend?: boolean | BulletLegendOptions | undefined;
readonly valueColor?: string | undefined;
readonly targetColor?: string | undefined;
readonly name?: string | undefined;
readonly onItemClick?: ChartProps['onPointClick'];
readonly text?: Partial<BulletChartText> | undefined;
readonly ref?: ChartProps['ref'];
}
| Name | Signature | Description |
|---|---|---|
data | readonly data: readonly ChartDatum[]; | |
valueField | readonly valueField: string; | |
targetFieldoptional | readonly targetField?: string | readonly string[] | undefined; | |
categoryFieldoptional | readonly categoryField?: string | undefined; | |
bandsoptional | readonly bands?: readonly BulletBand[] | undefined; | |
targetShapesoptional | readonly targetShapes?: readonly ('line' | 'circle' | 'cross')[] | undefined; | |
valueShapeoptional | readonly valueShape?: 'bar' | 'dot' | undefined; | Feature glyph: a bar from zero, or a dot at the value. |
orientationoptional | readonly orientation?: 'horizontal' | 'vertical' | undefined; | |
axisPositionoptional | readonly axisPosition?: 'start' | 'end' | undefined; | |
minoptional | readonly min?: number | undefined; | |
maxoptional | readonly max?: number | undefined; | |
intervaloptional | readonly interval?: number | undefined; | |
minorTicksoptional | readonly minorTicks?: number | undefined; | |
formatoptional | readonly format?: ChartFormat | undefined; | |
labelPositionoptional | readonly labelPosition?: 'inside' | 'outside' | undefined; | |
tickPositionoptional | readonly tickPosition?: 'inside' | 'outside' | undefined; | Tick marks inside or outside the plot; default follows |
labelsoptional | readonly labels?: boolean | {
readonly format?: ChartFormat | undefined;
} | undefined; | |
tooltipoptional | readonly tooltip?: ChartProps['tooltip']; | |
legendoptional | readonly legend?: boolean | BulletLegendOptions | undefined; | Legend of the value, the targets and the bands. Default off. |
valueColoroptional | readonly valueColor?: string | undefined; | |
targetColoroptional | readonly targetColor?: string | undefined; | |
nameoptional | readonly name?: string | undefined; | |
onItemClickoptional | readonly onItemClick?: ChartProps['onPointClick']; | |
textoptional | readonly text?: Partial<BulletChartText> | undefined; | |
refoptional | readonly ref?: ChartProps['ref']; | |
titleoptionalinherited | title?: string; | |
subtitleoptionalinherited | subtitle?: string; | |
descriptionoptionalinherited | description?: string; | |
onPointClickoptionalinherited | onPointClick?: ((ctx: ChartPointContext, event: MouseEvent<Element, MouseEvent>) => void); | |
accessibleTableoptionalinherited | accessibleTable?: boolean; | |
showDataTableoptionalinherited | showDataTable?: boolean; | |
animatedoptionalinherited | animated?: boolean; | |
localeoptionalinherited | locale?: string; | |
timeZoneoptionalinherited | timeZone?: string; | |
widthoptionalinherited | width?: number; | |
heightoptionalinherited | height?: number; | Drawing height in px (default 300). |
classNameoptionalinherited | className?: string; | |
styleoptionalinherited | style?: CSSProperties; | |
exportWritersoptionalinherited | exportWriters?: VizExportWriters; | Loaders of the PDF and XLSX writers: dynamic imports of |