API reference: @salmonui/charts/chart/bullet
BulletChartcomponent
import { BulletChart } from '@salmonui/charts/chart/bullet';function BulletChart(props: BulletChartProps): ReactNode;
Props: BulletChartProps
| 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 |