@cainiaofe/cn-ui-charts
Version:
44 lines (40 loc) • 730 B
text/typescript
import { G2ViewTree } from '@antv/g2/lib/runtime/types/options';
import { CSSProperties } from 'react';
export interface CnChartProps extends G2ViewTree {
/**
* 自适应配置
*/
autoFit?: boolean;
/**
* 容器className
*/
className?: string;
/**
* 容器样式属性
*/
containerStyle?: CSSProperties;
/**
* 样式属性
*/
style?: CSSProperties;
/**
* 远程获取数据配置
*/
remote?: {
url: string;
};
/** 图表数据 */
data: Array<Record<string, any>>;
/** 画布宽度 */
readonly width?: number;
/** 画布高度 */
readonly height?: number;
/**
* 主题
*/
readonly theme?: string;
/**
* 子配置
*/
options?: G2ViewTree;
}