Skip to content

LineChart

stable

Multi-series SVG line chart for time-series and trend data — cash forecasts, FX history, AI confidence trends

import { LineChart } from "@danagraph/design-system/finance"
Loading demo…

Props

datarequired
Type Record<string, number | string>[]Default —

Data rows

xKeyrequired
Type stringDefault —

Key for x-axis labels

yKeyrequired
Type string | string[] | LineSeries[]Default —

Series key(s) to plot

title
Type stringDefault —

Chart title

height
Type numberDefault —

SVG height in px (default 200)

showGrid
Type booleanDefault —

Show horizontal grid lines

showLegend
Type booleanDefault —

Show series legend

severityColored
Type booleanDefault —

Color first series by trend severity

bandLowKey
Type stringDefault —

Key for confidence band lower bound

bandHighKey
Type stringDefault —

Key for confidence band upper bound

semantictypeborderoutcome
MobileStacks / Scroll

Chart requires min 300px. Wrap in overflow-x-auto.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?