/** * autoChart — Wraps chart data in a Card with title and multi-series support. * * Ported from mcp-generator-3.x display_tools.py → show_chart. */ import { type ContainerComponent } from '../core/component.js'; import type { ChartSeries } from '../components/charts/index.js'; export type ChartType = 'bar' | 'line' | 'area' | 'pie'; export interface AutoChartOptions { /** Chart heading. */ title?: string; /** Optional subtitle. */ subtitle?: string; /** Chart type. Default 'bar'. */ chartType?: ChartType; /** Key in data to use as X axis (e.g. 'month'). */ xAxis?: string; /** Chart height in pixels. */ height?: number; /** Show legend. Default true. */ showLegend?: boolean; } /** * Auto-generate a chart Card from data and series definitions. * * @example * ```ts * autoChart( * [{ month: 'Jan', revenue: 42000, cost: 31000 }], * [{ dataKey: 'revenue', label: 'Revenue' }, { dataKey: 'cost', label: 'Cost' }], * { title: 'Monthly Revenue', xAxis: 'month', chartType: 'bar' }, * ) * ``` */ export declare function autoChart(data: Record[], series: ChartSeries[], options?: AutoChartOptions): ContainerComponent; //# sourceMappingURL=chart.d.ts.map