1 | export declare const LineChart: {
|
2 | new (props: import("./generateCategoricalChart").CategoricalChartProps): {
|
3 | readonly eventEmitterSymbol: Symbol;
|
4 | clipPathId: string;
|
5 | accessibilityManager: import("./AccessibilityManager").AccessibilityManager;
|
6 | throttleTriggeredAfterMouseMove: import("lodash").DebouncedFunc<(e: import("./generateCategoricalChart").MousePointer) => any>;
|
7 | container?: HTMLElement;
|
8 | componentDidMount(): void;
|
9 | displayDefaultTooltip(): void;
|
10 | getSnapshotBeforeUpdate(prevProps: Readonly<import("./generateCategoricalChart").CategoricalChartProps>, prevState: Readonly<import("./types").CategoricalChartState>): null;
|
11 | componentDidUpdate(prevProps: import("./generateCategoricalChart").CategoricalChartProps): void;
|
12 | componentWillUnmount(): void;
|
13 | getTooltipEventType(): import("../util/types").TooltipEventType;
|
14 | getMouseInfo(event: import("./generateCategoricalChart").MousePointer): {
|
15 | xValue: any;
|
16 | yValue: any;
|
17 | chartX: number;
|
18 | chartY: number;
|
19 | } | {
|
20 | activeTooltipIndex: number;
|
21 | activeLabel: any;
|
22 | activePayload: any[];
|
23 | activeCoordinate: import("../util/types").ChartCoordinate;
|
24 | chartX: number;
|
25 | chartY: number;
|
26 | };
|
27 | inRange(x: number, y: number, scale?: number): any;
|
28 | parseEventsOfWrapper(): any;
|
29 | addListener(): void;
|
30 | removeListener(): void;
|
31 | handleLegendBBoxUpdate: (box: DOMRect) => void;
|
32 | handleReceiveSyncEvent: (cId: string | number, data: import("./types").CategoricalChartState, emitter: Symbol) => void;
|
33 | handleBrushChange: ({ startIndex, endIndex }: {
|
34 | startIndex: number;
|
35 | endIndex: number;
|
36 | }) => void;
|
37 | handleMouseEnter: (e: import("react").MouseEvent<Element, MouseEvent>) => void;
|
38 | triggeredAfterMouseMove: (e: import("./generateCategoricalChart").MousePointer) => any;
|
39 | handleItemMouseEnter: (el: any) => void;
|
40 | handleItemMouseLeave: () => void;
|
41 | handleMouseMove: (e: import("./generateCategoricalChart").MousePointer & Partial<Omit<import("react").MouseEvent<Element, MouseEvent>, keyof import("./generateCategoricalChart").MousePointer>>) => void;
|
42 | handleMouseLeave: (e: any) => void;
|
43 | handleOuterEvent: (e: import("react").MouseEvent<Element, MouseEvent> | import("react").TouchEvent<Element>) => void;
|
44 | handleClick: (e: import("react").MouseEvent<Element, MouseEvent>) => void;
|
45 | handleMouseDown: (e: import("react").MouseEvent<Element, MouseEvent> | import("react").Touch) => void;
|
46 | handleMouseUp: (e: import("react").MouseEvent<Element, MouseEvent> | import("react").Touch) => void;
|
47 | handleTouchMove: (e: import("react").TouchEvent<Element>) => void;
|
48 | handleTouchStart: (e: import("react").TouchEvent<Element>) => void;
|
49 | handleTouchEnd: (e: import("react").TouchEvent<Element>) => void;
|
50 | triggerSyncEvent: (data: import("./types").CategoricalChartState) => void;
|
51 | applySyncEvent: (data: import("./types").CategoricalChartState) => void;
|
52 | filterFormatItem(item: any, displayName: any, childIndex: any): any;
|
53 | renderCursor: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
54 | renderPolarAxis: (element: any, displayName: string, index: number) => import("react").DetailedReactHTMLElement<{
|
55 | className: any;
|
56 | key: any;
|
57 | ticks: import("../util/types").TickItem[];
|
58 | type?: "number" | "category";
|
59 | dataKey?: import("../util/types").DataKey<any>;
|
60 | hide?: boolean;
|
61 | scale?: Function | import("../util/types").ScaleType;
|
62 | tick?: boolean | import("react").SVGProps<SVGTextElement> | import("react").ReactElement<SVGElement, string | import("react").JSXElementConstructor<any>> | ((props: any) => import("react").ReactElement<SVGElement, string | import("react").JSXElementConstructor<any>>);
|
63 | tickCount?: number;
|
64 | axisLine?: boolean | import("react").SVGProps<SVGLineElement>;
|
65 | tickLine?: boolean | import("react").SVGProps<SVGTextElement>;
|
66 | tickSize?: number;
|
67 | tickFormatter?: (value: any, index: number) => string;
|
68 | allowDataOverflow?: boolean;
|
69 | allowDuplicatedCategory?: boolean;
|
70 | allowDecimals?: boolean;
|
71 | domain?: import("../util/types").AxisDomain;
|
72 | includeHidden?: boolean;
|
73 | name?: string;
|
74 | unit?: string | number;
|
75 | axisType?: import("../util/types").AxisType;
|
76 | range?: number[];
|
77 | AxisComp?: any;
|
78 | label?: string | number | object | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
79 | }, HTMLElement>;
|
80 | renderPolarGrid: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
81 | renderLegend: () => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
82 | renderTooltip: () => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
83 | renderBrush: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
84 | renderReferenceElement: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
85 | renderActivePoints: ({ item, activePoint, basePoint, childIndex, isRange }: any) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[];
|
86 | renderGraphicChild: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
87 | renderCustomized: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
88 | renderClipPath(): import("react").JSX.Element;
|
89 | getXScales(): {
|
90 | [x: string]: Function | import("../util/types").ScaleType;
|
91 | };
|
92 | getYScales(): {
|
93 | [x: string]: Function | import("../util/types").ScaleType;
|
94 | };
|
95 | getXScaleByAxisId(axisId: string): Function | import("../util/types").ScaleType;
|
96 | getYScaleByAxisId(axisId: string): Function | import("../util/types").ScaleType;
|
97 | getItemByXY(chartXY: {
|
98 | x: number;
|
99 | y: number;
|
100 | }): {
|
101 | graphicalItem: any;
|
102 | payload: any;
|
103 | };
|
104 | renderMap: {
|
105 | CartesianGrid: {
|
106 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
107 | once: boolean;
|
108 | };
|
109 | ReferenceArea: {
|
110 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
111 | };
|
112 | ReferenceLine: {
|
113 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
114 | };
|
115 | ReferenceDot: {
|
116 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
117 | };
|
118 | XAxis: {
|
119 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
120 | };
|
121 | YAxis: {
|
122 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
123 | };
|
124 | Brush: {
|
125 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
126 | once: boolean;
|
127 | };
|
128 | Bar: {
|
129 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
130 | };
|
131 | Line: {
|
132 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
133 | };
|
134 | Area: {
|
135 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
136 | };
|
137 | Radar: {
|
138 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
139 | };
|
140 | RadialBar: {
|
141 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
142 | };
|
143 | Scatter: {
|
144 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
145 | };
|
146 | Pie: {
|
147 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
148 | };
|
149 | Funnel: {
|
150 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => any[];
|
151 | };
|
152 | Tooltip: {
|
153 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
154 | once: boolean;
|
155 | };
|
156 | PolarGrid: {
|
157 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
158 | once: boolean;
|
159 | };
|
160 | PolarAngleAxis: {
|
161 | handler: (element: any, displayName: string, index: number) => import("react").DetailedReactHTMLElement<{
|
162 | className: any;
|
163 | key: any;
|
164 | ticks: import("../util/types").TickItem[];
|
165 | type?: "number" | "category";
|
166 | dataKey?: import("../util/types").DataKey<any>;
|
167 | hide?: boolean;
|
168 | scale?: Function | import("../util/types").ScaleType;
|
169 | tick?: boolean | import("react").SVGProps<SVGTextElement> | import("react").ReactElement<SVGElement, string | import("react").JSXElementConstructor<any>> | ((props: any) => import("react").ReactElement<SVGElement, string | import("react").JSXElementConstructor<any>>);
|
170 | tickCount?: number;
|
171 | axisLine?: boolean | import("react").SVGProps<SVGLineElement>;
|
172 | tickLine?: boolean | import("react").SVGProps<SVGTextElement>;
|
173 | tickSize?: number;
|
174 | tickFormatter?: (value: any, index: number) => string;
|
175 | allowDataOverflow?: boolean;
|
176 | allowDuplicatedCategory?: boolean;
|
177 | allowDecimals?: boolean;
|
178 | domain?: import("../util/types").AxisDomain;
|
179 | includeHidden?: boolean;
|
180 | name?: string;
|
181 | unit?: string | number;
|
182 | axisType?: import("../util/types").AxisType;
|
183 | range?: number[];
|
184 | AxisComp?: any;
|
185 | label?: string | number | object | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
186 | }, HTMLElement>;
|
187 | };
|
188 | PolarRadiusAxis: {
|
189 | handler: (element: any, displayName: string, index: number) => import("react").DetailedReactHTMLElement<{
|
190 | className: any;
|
191 | key: any;
|
192 | ticks: import("../util/types").TickItem[];
|
193 | type?: "number" | "category";
|
194 | dataKey?: import("../util/types").DataKey<any>;
|
195 | hide?: boolean;
|
196 | scale?: Function | import("../util/types").ScaleType;
|
197 | tick?: boolean | import("react").SVGProps<SVGTextElement> | import("react").ReactElement<SVGElement, string | import("react").JSXElementConstructor<any>> | ((props: any) => import("react").ReactElement<SVGElement, string | import("react").JSXElementConstructor<any>>);
|
198 | tickCount?: number;
|
199 | axisLine?: boolean | import("react").SVGProps<SVGLineElement>;
|
200 | tickLine?: boolean | import("react").SVGProps<SVGTextElement>;
|
201 | tickSize?: number;
|
202 | tickFormatter?: (value: any, index: number) => string;
|
203 | allowDataOverflow?: boolean;
|
204 | allowDuplicatedCategory?: boolean;
|
205 | allowDecimals?: boolean;
|
206 | domain?: import("../util/types").AxisDomain;
|
207 | includeHidden?: boolean;
|
208 | name?: string;
|
209 | unit?: string | number;
|
210 | axisType?: import("../util/types").AxisType;
|
211 | range?: number[];
|
212 | AxisComp?: any;
|
213 | label?: string | number | object | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
214 | }, HTMLElement>;
|
215 | };
|
216 | Customized: {
|
217 | handler: (element: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, displayName: string, index: number) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
218 | };
|
219 | };
|
220 | render(): import("react").JSX.Element;
|
221 | context: any;
|
222 | setState<K extends keyof import("./types").CategoricalChartState>(state: import("./types").CategoricalChartState | ((prevState: Readonly<import("./types").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./types").CategoricalChartState | Pick<import("./types").CategoricalChartState, K>) | Pick<import("./types").CategoricalChartState, K>, callback?: () => void): void;
|
223 | forceUpdate(callback?: () => void): void;
|
224 | readonly props: Readonly<import("./generateCategoricalChart").CategoricalChartProps> & Readonly<{
|
225 | children?: import("react").ReactNode;
|
226 | }>;
|
227 | state: Readonly<import("./types").CategoricalChartState>;
|
228 | refs: {
|
229 | [key: string]: import("react").ReactInstance;
|
230 | };
|
231 | shouldComponentUpdate?(nextProps: Readonly<import("./generateCategoricalChart").CategoricalChartProps>, nextState: Readonly<import("./types").CategoricalChartState>, nextContext: any): boolean;
|
232 | componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
233 | componentWillMount?(): void;
|
234 | UNSAFE_componentWillMount?(): void;
|
235 | componentWillReceiveProps?(nextProps: Readonly<import("./generateCategoricalChart").CategoricalChartProps>, nextContext: any): void;
|
236 | UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("./generateCategoricalChart").CategoricalChartProps>, nextContext: any): void;
|
237 | componentWillUpdate?(nextProps: Readonly<import("./generateCategoricalChart").CategoricalChartProps>, nextState: Readonly<import("./types").CategoricalChartState>, nextContext: any): void;
|
238 | UNSAFE_componentWillUpdate?(nextProps: Readonly<import("./generateCategoricalChart").CategoricalChartProps>, nextState: Readonly<import("./types").CategoricalChartState>, nextContext: any): void;
|
239 | };
|
240 | displayName: string;
|
241 | defaultProps: import("./generateCategoricalChart").CategoricalChartProps;
|
242 | getDerivedStateFromProps: (nextProps: import("./generateCategoricalChart").CategoricalChartProps, prevState: import("./types").CategoricalChartState) => import("./types").CategoricalChartState;
|
243 | renderActiveDot: (option: any, props: any) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
244 | contextType?: import("react").Context<any>;
|
245 | };
|