import React from 'react'; import { ChartContainerProps } from '../components'; import { StatisticConfigType } from '../hooks/useChartStatistic'; import type { ChartClassNames, ChartStyles } from '../types/classNames'; import { type RadarChartDataItem } from '../utils'; export type { RadarChartDataItem }; 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; /** 自定义CSS类名(支持对象格式,为每层DOM设置类名) */ classNames?: ChartClassNames; /** 数据时间 */ dataTime?: string; /** 图表主题 */ theme?: 'dark' | 'light'; /** 自定义主色(可选),支持 string 或 string[];数组按序对应各数据序列 */ color?: string | string[]; /** 头部工具条额外按钮 */ toolbarExtra?: React.ReactNode; /** 是否将过滤器渲染到工具栏 */ renderFilterInToolbar?: boolean; /** ChartStatistic组件配置:object表示单个配置,array表示多个配置 */ statistic?: StatisticConfigType; /** 图例文字最大宽度(像素),超出则显示省略号,默认80px */ textMaxWidth?: number; /** 是否显示加载状态(当图表未闭合时显示) */ loading?: boolean; /** 自定义样式对象(支持对象格式,为每层DOM设置样式) */ styles?: ChartStyles; } declare const RadarChart: React.FC; export default RadarChart;