/** Renders exactly one line from `data`; not a substitute for ApexBarChart/ApexPieChart when comparing multiple series side by side. */ export type ApexLineChartProps = { /** @deprecated "realtime" does not animate your data: it appends Math.random() values every second. Removed in the next major. */ variant?: LineChartVariant; /** Read only at mount — later prop updates are silently ignored unless this component remounts (new `key`). */ data: number[]; /** X-axis category labels, one per data point; omitted, the axis falls back to point positions. */ labels?: string[]; /** Only series[0] is read, as the single line's name — there is no way to render more than one line here. */ series?: string[]; /** Heading above the chart; in compact mode it is drawn as clamped text, with a tooltip when truncated. */ title?: string; /** Chart height as a px number or CSS string. A numeric height under 220 switches the chart to compact mode. */ height?: number | string; /** Chart width as a px number or CSS string; percentages resolve against the container. Under 280px it goes compact. */ width?: number | string; /** Line colours in order. Defaults to the theme's categorical series palette. */ lineColors?: string[]; /** Ignored once the chart renders in compact/small mode — the fallback title there is always left-aligned regardless of this value. */ titlePosition?: "left" | "center" | "right"; /** Despite the name, gates only the tooltip and hover markers — the line itself still renders when this is false. */ showSeries?: boolean; /** Title colour and font; defaults to 14px, weight 600 and the text ink. Compact mode scales an unset fontSize to the width (12-18px). */ titleStyle?: { color?: string; fontSize?: string; fontWeight?: number | string; fontFamily?: string; }; /** Forces compact mode: the title moves above the chart and zoom and toolbar turn off. Small sizes enable it automatically. */ compact?: boolean; /** Maximum title lines before clipping in compact mode. Defaults to 2 there; no effect outside compact mode. */ titleClampLines?: number; /** Adds "…" to a clipped compact title. Defaults to true; applies only when `titleClampLines` is 1. */ showTitleEllipsis?: boolean; /** Declared but never read by this component — has zero effect here; ApexPieChart/ApexPolarCharts implement the same shape and apply it. */ legendStyle?: { colors?: string | string[]; useSeriesColors?: boolean; position?: "top" | "right" | "bottom" | "left"; }; /** Minimum chart width, as a fraction of its container, for the zoom toolbar to show. Defaults to 0.6. */ toolbarBreakpointPct?: number; }; /** Chart mode: "basic" plots `data` as given; "realtime" instead free-runs on random values — see `variant`. */ export type LineChartVariant = "basic" | "realtime";