@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
33 lines (32 loc) • 773 B
TypeScript
import { Group, Shape } from '@antv/g';
import { View } from '@antv/g2';
export interface TrendlineConfig {
visible?: boolean;
type?: string;
style?: any;
showConfidence?: boolean;
confidenceStyle?: any;
}
export interface ITrendline extends TrendlineConfig {
view: View;
plotOptions: any;
}
export default class Quadrant {
data: {
trendlineData: any[];
confidenceData: any[];
};
protected options: any;
protected view: View;
protected container: Group;
protected shape: Shape;
constructor(cfg: ITrendline);
init(): void;
render(): void;
clear(): void;
destroy(): void;
private processData;
private getTrendlinePoints;
private getConfidencePath;
private adjustScale;
}