UNPKG

1.01 kBTypeScriptView Raw
1import 'react';
2import { ScatterOptions as Options } from '@antv/g2plot/lib/plots/scatter';
3import { RegressionLineOptions } from '@antv/g2plot/lib/plots/scatter/types';
4import { StyleAttr } from '@antv/g2plot/lib/types/attr';
5import { BasePlotOptions } from '../createPlot';
6import { AxisAPIOptions, LengendAPIOptions, TooltipAPIOptions, LabelAPIOptions } from './core/interface';
7interface TrendLineAPIOptions extends RegressionLineOptions {
8 showConfidence?: boolean;
9 confidenceStyle?: StyleAttr;
10}
11interface ScatterOptions extends Options, BasePlotOptions {
12 legend?: LengendAPIOptions;
13 tooltip?: TooltipAPIOptions;
14 label?: LabelAPIOptions;
15 trendLine?: Options['regressionLine'];
16 xAxis?: AxisAPIOptions;
17 yAxis?: AxisAPIOptions;
18 pointSize?: Options['size'];
19 size?: Options['size'];
20 trendline?: TrendLineAPIOptions;
21}
22declare const _default: import("react").ForwardRefExoticComponent<ScatterOptions & import("react").RefAttributes<any>>;
23export default _default;