import React from 'react'; import { ChartContainerProps } from '../components'; import { StatisticConfigType } from '../hooks/useChartStatistic'; export interface RadarChartDataItem { category?: string; label?: string; type?: string; score?: number | string; filterLabel?: string; x?: string; y?: number; [key: string]: any; } interface RadarChartProps extends ChartContainerProps { /** 扁平化数据数组 */ data: RadarChartDataItem[]; /** 图表标题 */ title?: string; /** 图表宽度,默认600px */ width?: number | string; /** 图表高度,默认400px */ height?: number | string; /** 自定义边框颜色 */ borderColor?: string; /** 自定义背景颜色 */ backgroundColor?: string; /** 自定义点背景颜色 */ pointBackgroundColor?: string; /** 自定义CSS类名 */ className?: string; /** 数据时间 */ dataTime?: string; /** 自定义主色(可选),支持 string 或 string[];数组按序对应各数据序列 */ color?: string | string[]; /** 头部工具条额外按钮 */ toolbarExtra?: React.ReactNode; /** 是否将过滤器渲染到工具栏 */ renderFilterInToolbar?: boolean; /** ChartStatistic组件配置:object表示单个配置,array表示多个配置 */ statistic?: StatisticConfigType; /** 图例文字最大宽度(像素),超出则显示省略号,默认80px */ textMaxWidth?: number; /** 是否显示加载状态(当图表未闭合时显示) */ loading?: boolean; } declare const RadarChart: React.FC; export default RadarChart;