UNPKG

1.19 kBTypeScriptView Raw
1import 'react';
2import { RadarOptions as Options } from '@antv/g2plot/lib/plots/radar';
3import { MappingOptions } from '@antv/g2plot/lib/adaptor/geometries/base';
4import { BasePlotOptions } from '../createPlot';
5import { LengendAPIOptions, TooltipAPIOptions, LabelAPIOptions } from './core/interface';
6interface LineAPIOptions {
7 visible?: boolean;
8 size?: number;
9 style?: Options['lineStyle'];
10}
11interface PointAPIOptions extends MappingOptions {
12 visible?: boolean;
13}
14interface AreaAPIOptions extends MappingOptions {
15 visible?: boolean;
16}
17interface RadarOptions extends Options, BasePlotOptions {
18 /** 请使用xField替代 */
19 angleField?: string;
20 /** 请使用yFeild替代 */
21 radiusField?: string;
22 line?: LineAPIOptions;
23 point?: PointAPIOptions;
24 area?: AreaAPIOptions;
25 legend?: LengendAPIOptions;
26 tooltip?: TooltipAPIOptions;
27 label?: LabelAPIOptions;
28 /** 请使用xAxis替代 */
29 angleAxis?: any;
30 /** 请使用YAxis替代 */
31 radiusAxis?: any;
32}
33export { RadarOptions };
34declare const _default: import("react").ForwardRefExoticComponent<RadarOptions & import("react").RefAttributes<any>>;
35export default _default;