import React from 'react'; import { ChartContainerProps } from '../components'; import { StatisticConfigType } from '../hooks/useChartStatistic'; export interface ScatterChartDataItem { category?: string; type?: string; x: number | string; y: number | string; filterLabel?: string; } export interface ScatterChartProps extends ChartContainerProps { /** 扁平化数据数组 */ data: ScatterChartDataItem[]; /** 图表标题 */ title?: string; /** 图表宽度,默认600px */ width?: number | string; /** 图表高度,默认400px */ height?: number | string; /** 自定义CSS类名 */ className?: string; /** 数据时间 */ dataTime?: string; /** 自定义主色(可选),支持 string 或 string[];数组按序对应各数据序列 */ color?: string | string[]; /** 头部工具条额外按钮 */ toolbarExtra?: React.ReactNode; /** 是否将过滤器渲染到工具栏 */ renderFilterInToolbar?: boolean; /** X轴单位 */ xUnit?: string; /** Y轴单位 */ yUnit?: string; /** X轴标签 */ xAxisLabel?: string; /** Y轴标签 */ yAxisLabel?: string; /** X轴位置 */ xPosition?: 'top' | 'bottom'; /** Y轴位置 */ yPosition?: 'left' | 'right'; /** 是否隐藏X轴,默认false */ hiddenX?: boolean; /** 是否隐藏Y轴,默认false */ hiddenY?: boolean; /** 是否显示网格线,默认true */ showGrid?: boolean; /** ChartStatistic组件配置:object表示单个配置,array表示多个配置 */ statistic?: StatisticConfigType; /** 图例文字最大宽度(像素),超出则显示省略号,默认80px */ textMaxWidth?: number; /** 是否显示加载状态(当图表未闭合时显示) */ loading?: boolean; } declare const ScatterChart: React.FC; export default ScatterChart;