Skip to content
Charts

Profit / loss

Above and below zero. Fill, stroke, or opposing bars.

Props

PropertyTypeDefaultDescription
dataChartDatum[]Signed values. Positive is up, negative is down.
dataKeystring"value"Signed numeric field.
labelKeystring"date"X-axis field.
variant"fill" | "stroke" | "bars""fill"Split area, a single stroke, or opposing bars.
configChartConfigColors for up and down. Defaults to --ak-up / --ak-down.
classNamestringChart container. Default height is 220px.