Skip to main content

Chart

The Chart component renders simple charts and graphs. Currently supports bar, line, and pie charts.

Usage

Props

string
required
Type of chart: bar, line, pie, doughnut.
array
required
Array of data points { label: string, value: number, color?: string }.
number
default:"200"
Height of the chart in pixels.
boolean
default:"true"
Show X-axis labels.
boolean
default:"true"
Show Y-axis labels.

Examples

Pie Chart