Chart
Data visualization wrapper with accessible fallback table.
Generated from the package's public source.
API
Canvascomponent
Canvas(props: ChartCanvasProps): Element
Props
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
children: Element
ChartCanvasPropsinterface
Props
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
children: Element
ChartDataPointinterface
Props
labelstringvaluenumber
ChartDescriptionPropsinterface
Props
class?string
children: Element
ChartFallbackTablePropsinterface
Props
class?stringvisuallyHidden?boolean— Visually hidden by default for screen readers.
children: Element
ChartLegendPropsinterface
Props
class?string
children: Element
ChartRootPropsinterface
Props
class?stringdata?ChartDataPoint[]— Data points for the chart.type?ChartType— Type of chart visualization.
children: Element
ChartTitlePropsinterface
Props
class?string
children: Element
ChartTypetype
Descriptioncomponent
Description(props: ChartDescriptionProps): Element
Props
class?string
children: Element
FallbackTablecomponent
FallbackTable(props: ChartFallbackTableProps): Element
Props
class?stringvisuallyHidden?boolean— Visually hidden by default for screen readers.
children: Element
Legendcomponent
Legend(props: ChartLegendProps): Element
Props
class?string
children: Element
Rootcomponent
Root(props: ChartRootProps): Element
Props
class?stringdata?ChartDataPoint[]— Data points for the chart.type?ChartType— Type of chart visualization.
children: Element
Titlecomponent
Title(props: ChartTitleProps): Element
Props
class?string
children: Element