import type { VisualizationOptions, VisualizationTheme } from '../../types'; /** * ScatterDataItem is the type for each data item in the scatter chart. */ export type ScatterDataItem = { x: number; y: number; group?: string; }; /** * ScatterConfig defines the configuration for rendering the scatter chart. */ export interface ScatterConfig { type?: 'scatter'; data: ScatterDataItem[]; title?: string; axisXTitle?: string; axisYTitle?: string; theme?: VisualizationTheme; style?: { backgroundColor?: string; palette?: string[]; }; } /** * ScatterInstance represents a scatter chart instance with render and destroy methods. */ export interface ScatterInstance { render: (config: ScatterConfig) => void; destroy: () => void; } /** * Scatter chart component using G2 5.0. * * @example * ```ts * const scatter = Scatter({ * container: '#container', * width: 600, * height: 400, * }); * * scatter.render({ * type: 'scatter', * data: [ * { x: 10, y: 15 }, * { x: 20, y: 25 }, * { x: 30, y: 35 }, * { x: 40, y: 45 }, * ], * }); * * scatter.destroy(); * ``` */ export declare const Scatter: (options: VisualizationOptions) => ScatterInstance;