/** * SvGridChart - renders a `ChartSpec` as inline SVG. Supports grouped + * stacked bars, line, area, pie / donut, combo charts (per-series type), * a secondary Y axis, signed Y domains, and axis titles. Interactive: a * unified crosshair tooltip (hover a category -> all series at once), * focus tooltips, a clickable legend that toggles series, optional data * labels, and an `onSelect` drill hook. No external charting dependency. */ import { type ChartSpec, type ChartSelection } from './chart'; type Props = { spec: ChartSpec; /** Show the (clickable) legend. Default true. */ legend?: boolean; /** Enable tooltips + crosshair + legend toggling. Default true. */ interactive?: boolean; /** Draw the value on each bar / point / slice. Default false. */ dataLabels?: boolean; /** Format a value for tooltips, data labels, AND Y-axis ticks. */ formatValue?: (value: number) => string; /** Fired when a category / slice is clicked (drill into the grid). */ onSelect?: (selection: ChartSelection) => void; /** Like `onSelect`, but only fires when the spec carries `rowIds` and * includes them in the payload. Use this to filter / highlight the * source grid when the user clicks a chart element. */ onDrill?: (selection: ChartSelection) => void; /** Allow drag-to-zoom on the plot area. Double-click resets. * Only meaningful for cartesian charts (not pie). Default false. */ zoomable?: boolean; /** Show a compact brush / mini-map under the main chart. A draggable * window selects what the main chart shows. Pairs naturally with * `zoomable`. Default false. */ brush?: boolean; /** Height of the brush strip in pixels. Default 88. */ brushHeight?: number; /** Show a small toolbar above the chart: reset-zoom (when zoomed) and * export (PNG / SVG / copy). Default true when zoomable or onDrill is * set, otherwise false. Set to `false` to hide explicitly. */ toolbar?: boolean; /** Explicit chart pixel size (viewBox). When set, the chart lays out to * fit exactly - used by the docked panel to size the chart to its body. */ width?: number; height?: number; }; declare const SvGridChart: import("svelte").Component; type SvGridChart = ReturnType; export default SvGridChart;