| 1 | "use client" |
| 2 | |
| 3 | import { CartesianCanvas } from "./cartesian-canvas" |
| 4 | import { type CartesianChartProps, |
| 5 | |
| 6 | // `object` rather than `Record<string, unknown>`: interfaces don't get an |
| 7 | // implicit index signature, so interface-typed rows failed to satisfy the |
| 8 | // generic. Internal layers still index rows through their own Row type. |
| 9 | type Row |
| 10 | |
| 11 | /** Composable dither **area** chart. Compose `<Area>`, `<Grid>`, axes, … inside. */ |
| 12 | export function AreaChart<TData |
| 13 | props: CartesianChartProps |
| 14 | ) { |
| 15 | return <CartesianRoot chartType |
| 16 | } |
| 17 | |
| 18 | /** Composable dither **line** chart - `<Line>` series with a glow under the line. */ |
| 19 | export function LineChart<TData |
| 20 | props: CartesianChartProps |
| 21 | ) { |
| 22 | return <CartesianRoot chartType |
| 23 | } |
| 24 | |
| 25 | export type AreaChartProps |