import React from 'react'; /** * ChartRender 组件 - 图表渲染组件 * * 该组件用于渲染各种类型的图表,支持饼图、柱状图、折线图、面积图、表格等。 * 提供图表类型切换、全屏显示、下载、配置等功能。 * 使用 React.lazy 和 Suspense 实现代码分割和延迟加载,优化性能。 * * @component * @description 图表渲染组件,支持多种图表类型的渲染和交互 * @param {Object} props - 组件属性 * @param {'pie'|'bar'|'line'|'column'|'area'|'descriptions'|'table'} props.chartType - 图表类型 * @param {Record[]} props.chartData - 图表数据 * @param {Object} props.config - 图表配置 * @param {any} props.config.height - 图表高度 * @param {any} props.config.x - X轴字段 * @param {any} props.config.y - Y轴字段 * @param {any} props.config.rest - 其他配置 * @param {any} [props.config.index] - 图表索引 * @param {any} [props.config.chartData] - 图表数据 * @param {any} [props.config.columns] - 列配置 * @param {any} [props.node] - 节点数据 * @param {any} [props.title] - 图表标题 * @param {boolean} [props.isChartList] - 是否为图表列表 * @param {number} [props.columnLength] - 列长度 * @param {(value: number) => void} [props.onColumnLengthChange] - 列长度变化回调 * @param {string} [props.dataTime] - 数据时间 * @param {string} [props.groupBy] - 业务分组维度 * @param {string} [props.filterBy] - 主筛选维度 * @param {string} [props.colorLegend] - 数据系列维度 * * @example * ```tsx * * ``` * * @returns {React.ReactElement} 渲染的图表组件 * * @remarks * - 支持多种图表类型(饼图、柱状图、折线图、面积图、表格等) * - 提供图表类型切换功能 * - 支持全屏显示 * - 提供图表下载功能 * - 支持图表配置和自定义 * - 提供响应式布局 * - 集成国际化支持 * - 提供图表属性工具栏 * - 使用 React.lazy 和 Suspense 实现代码分割 */ export declare const ChartRender: React.FC<{ chartType: 'pie' | 'donut' | 'bar' | 'line' | 'column' | 'area' | 'radar' | 'scatter' | 'funnel' | 'descriptions' | 'table'; chartData: Record[]; config: { height: any; x: any; y: any; rest: any; index?: any; chartData?: any; columns?: any; }; node?: any; title?: any; isChartList?: boolean; columnLength?: number; onColumnLengthChange?: (value: number) => void; dataTime?: string; groupBy?: string; filterBy?: string; colorLegend?: string; loading?: boolean; }>;