What it does
Renders monotone lines with configurable grid, tooltip, and legend.
Control density and frame appearance with tokens instead of one-off CSS.
Data shape
Each row is an object; `xKey` names the categorical or ordinal field; numeric fields back each `series.dataKey`.
Common use cases
- Revenue or usage trends by week.
- Latency percentiles compared across environments.
- Conversion funnels as simple step trends.
Accessibility
Provide meaningful `name` values for series so tooltips and legends read clearly.
Validate contrast for axes and labels against your chosen `appearance` background.
Next.js integration notes
Import from `@zentauri-ui/zentauri-components/charts/line` inside client components when interaction is required.
FAQ
How do I add another series?
Append an entry to `series` with a distinct `dataKey` that exists on each datum; optional `name` and palette `color` keys customize the legend and stroke.
Can lines share a sync id?
Pass `syncId` to coordinate tooltips or brushing across multiple charts that use the same identifier.