BarChart API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
BarChart16 props0 callbacks0 methods
Props16
| Name | Type | Description |
|---|---|---|
barColorOptional |
| CSS color or per-bar rule. Return undefined to retain the theme color. |
heightOptional | number | undefined | Rendered height. A numeric size uses pixels; string sizes follow the supported CSS height format. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
tooltipOptional | boolean | undefined | Enables hover/focus tooltips for chart or timeline values. |
dataRequired |
| Data points rendered by the chart, in display order. |
ariaLabelRequired | string | Accessible name announced by assistive technology. |
showPointsOptional | boolean | undefined | Shows markers at chart data points. |
showLabelsOptional | boolean | undefined | Optional category text; defaults to the tooltip title. |
showValuesOptional | boolean | undefined | Shows formatted numeric values beside chart data points. |
showGridOptional | boolean | undefined | Shows the chart grid lines. |
legendOptional | string | undefined | Legend text identifying the chart series. |
formatValueOptional |
| Formats the numeric value for display without changing its stored value. |
tooltipIndicatorOptional | "none" | "line" | "dot" | "dashed" | undefined | Style of the visual indicator used with chart tooltips. |
interpolationOptional | "step" | "linear" | undefined | Connects line/area values with straight segments or stepped transitions. |
areaFillOptional | "solid" | "gradient" | undefined | Uses a solid or gradient fill for the area chart. |
renderTooltipOptional |
| Renders custom chart tooltip content for a data point and its index. |
Events and callbacks0
No component-specific events or callbacks.
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.