Charts
Profit / loss
Above and below zero. Fill, stroke, or opposing bars.
Props
| Property | Type | Default | Description |
|---|---|---|---|
data | ChartDatum[] | — | Signed values. Positive is up, negative is down. |
dataKey | string | "value" | Signed numeric field. |
labelKey | string | "date" | X-axis field. |
variant | "fill" | "stroke" | "bars" | "fill" | Split area, a single stroke, or opposing bars. |
config | ChartConfig | — | Colors for up and down. Defaults to --ak-up / --ak-down. |
className | string | — | Chart container. Default height is 220px. |