/** * @usevyre/react — LineChart * * AI CONTEXT: * ┌──────────────────────────────────────────────────────────────────┐ * │ Component: LineChart │ * │ Import: import { LineChart } from "@usevyre/react" │ * │ │ * │ Multi-series line chart. Data + config driven (NOT JSX children). │ * │ data = ChartDatum[] (required — array of row objects) │ * │ config = ChartConfig (required — { key: {label,color} }) │ * │ xKey = string (required — the x-axis field name) │ * │ curve = "linear"(default) | "smooth" │ * │ dots = boolean (default false — draw a dot per point) │ * │ width = number (default 480) height = number (240) │ * │ showGrid = boolean (default true) │ * │ showLegend = boolean (default true — toggleable series) │ * │ showTooltip = boolean (default true — hover + arrow keys) │ * │ │ * │ One per series; colors come ONLY from config. │ * │ │ * │ ANTI-PATTERNS: │ * │ ❌ series={...} ✅ data + config │ * │ ❌ color="blue" ✅ color token in config │ * │ ❌ / kids ✅ showGrid / showTooltip props │ * └──────────────────────────────────────────────────────────────────┘ * * @example * */ import React from "react"; import { type Curve } from "../../utils/chart-math"; import type { ChartConfig, ChartDatum } from "../Chart/chart-types"; export interface LineChartProps { data: ChartDatum[]; config: ChartConfig; xKey: string; curve?: Curve; dots?: boolean; width?: number; height?: number; showGrid?: boolean; showLegend?: boolean; showTooltip?: boolean; className?: string; } export declare const LineChart: React.FC;