Charts
Chart
Chart widget (#3727, #3888): bars, a line, a plain table, a donut or a single headline value over labelled values, drawn from the loaded data. Every chart carries its numbers as text (bar values inline, a visible table for `table`, a visually hidden table for the line and the donut, the value itself for `stat`) so it is readable without sight.Public export
typescript
import { Chart } from '@happyvertical/smrt-ui/charts';- Import path
@happyvertical/smrt-ui/charts- Props
- 9
- Props described
- 9 of 9
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
dataChartData | nullYesValidated chart data to render, or null for the empty state.stylestringNoRequested chart presentation; unsupported values fall back to bars.titlestringNoAccessible heading shown above the chart.localestringNoLocale used to format displayed numeric values.formatValue(value: number) => stringNoHost-owned units/precision, used for values, tooltips and value axes.size'compact' | 'regular' | 'tall'NoHow much room the chart takes. `compact` is a sparkline for a card (a line with no axis, labels or readout); `tall` gives a page's main chart room. Default `regular`.valueAxisbooleanNoLine: label the value axis (top, middle and bottom values, short form) with light gridlines. Default on for `tall`.explorebooleanNoLine: let the pointer and the arrow keys read each value in a tooltip (a slider whose value text is the point). Default on for `tall`.readoutbooleanNoLine: the peak and latest values under the chart. Default on; a page that shows its own headline figures turns it off.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.