import type { VisualizationOptions } from '../../types'; /** * BoxplotDataItem is the type for each data item in the boxplot chart. */ export type BoxplotDataItem = { category: string; value: number; group?: string; }; /** * BoxplotConfig defines the configuration for rendering the boxplot chart. */ export interface BoxplotConfig { type?: 'boxplot'; data: BoxplotDataItem[]; theme?: 'default' | 'academy' | 'dark'; title?: string; axisXTitle?: string; axisYTitle?: string; style?: { backgroundColor?: string; palette?: string[]; startAtZero?: boolean; }; } /** * BoxplotInstance represents a boxplot chart instance with render and destroy. */ export interface BoxplotInstance { render: (config: BoxplotConfig) => void; destroy: () => void; } /** * Boxplot chart component using G2 5.0. * * @example * ```ts * const boxplot = Boxplot({ * container: '#container', * width: 600, * height: 400, * }); * * boxplot.render({ * type: 'boxplot', * data: [ * { category: '班级A', value: 15 }, * { category: '班级A', value: 18 }, * { category: '班级A', value: 22 }, * { category: '班级A', value: 27 }, * { category: '班级A', value: 35 }, * ], * theme: 'academy' * }); * * boxplot.destroy(); * ``` */ export declare const Boxplot: (options: VisualizationOptions) => BoxplotInstance;