Content
Charts
Beautiful, responsive data visualizations including Line, Area, Bar, and Pie charts.
Line Chart
Ideal for showing trends over time or categories.
Area Chart
A line chart with a shaded area below the line, emphasizing volume.
Bar Chart
Compare values across different categories with rounded bars.
Pie & Donut Chart
Show proportions and percentages in a beautiful donut format.
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
data | any[] | — | Structured array of data objects to map onto the chart |
height | number | string | — | Vertical dimension of the chart area in pixels |
index | string | — | Key representing the primary X-axis coordinate categories |
categories | string[] | — | Keys of data fields to render as separate chart lines/bars |
colors | string[] | — | Array of custom color overrides for each category series |
showGrid | boolean | — | If true, draws gridlines behind the coordinates |
showXAxis | boolean | — | Configures the showXAxis option |
showYAxis | boolean | — | Configures the showYAxis option |
showTooltip | boolean | — | If true, reveals interactive pointer tracking popovers |
showLegend | boolean | — | If true, displays interactive series color legends |
curveType | 'basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | — | Configures the curveType option |
layout | 'horizontal' | 'vertical' | — | Configures the layout option |
value | number | — | Raw data string or URL to encode into the QR grid |