Chart
SVG charts (bar, line, pie).
Import
tsx
import { ZChart } from "@zurto/ui";Usage
tsx
<ZChart
type="bar"
data={[
{ label: "Jan", value: 100 },
{ label: "Feb", value: 150 },
]}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | 'bar' | 'line' | 'pie' | 'donut' | 'bar' | Chart type |
data | DataPoint[] | [] | Chart data |
width | number | 400 | Chart width |
height | number | 300 | Chart height |
showLegend | boolean | true | Show legend |