UNPKG

931 BTypeScriptView Raw
1import 'react';
2import { BarOptions as Options } from '@antv/g2plot/lib/plots/bar';
3import { BasePlotOptions } from '../createPlot';
4import { LengendAPIOptions, TooltipAPIOptions, LabelAPIOptions } from './core/interface';
5interface BarOptions extends Options, BasePlotOptions {
6 /** 请使用seriesField替代 */
7 colorField?: any;
8 /** 图例 */
9 legend?: LengendAPIOptions;
10 /** 图表提示框 */
11 tooltip?: TooltipAPIOptions;
12 /** 数据标注label */
13 label?: LabelAPIOptions;
14 /** 条形的宽度,如设置该属性值,则宽度固定不自动调整 */
15 barSize?: number;
16 /** 旧版api,即将废弃 请使用seriesField替代 */
17 stackField?: string;
18}
19export declare const polyfill: (opt: BarOptions) => BarOptions;
20export { BarOptions };
21declare const _default: import("react").ForwardRefExoticComponent<BarOptions & import("react").RefAttributes<any>>;
22export default _default;