UNPKG

1.25 kBTypeScriptView Raw
1export interface AdjustCfg {
2 readonly adjustNames?: string[];
3 readonly xField?: string;
4 readonly yField?: string;
5 readonly dodgeBy?: string;
6 readonly marginRatio?: number;
7 readonly dodgeRatio?: number;
8 readonly size?: number;
9 readonly height?: number;
10 readonly reverseOrder?: boolean;
11}
12export interface DodgeCfg {
13 readonly adjustNames?: string[];
14 readonly xField: string;
15 readonly yField?: string;
16 readonly marginRatio?: number;
17 readonly dodgeRatio?: number;
18 readonly dodgeBy?: string;
19 readonly intervalPadding?: number;
20 readonly dodgePadding?: number;
21 readonly xDimensionLength?: number;
22 readonly groupNum?: number;
23 readonly defaultSize?: number;
24 readonly maxColumnWidth?: number;
25 readonly minColumnWidth?: number;
26 readonly columnWidthRatio?: number;
27 readonly customOffset?: ((data: any, range: any) => number) | number;
28}
29export interface StackCfg {
30 readonly adjustNames?: string[];
31 readonly xField: string;
32 readonly yField?: string;
33 readonly height?: number;
34 readonly size?: number;
35 readonly reverseOrder?: boolean;
36}
37export interface Data {
38 [key: string]: any;
39}
40export interface Range {
41 pre: number;
42 next: number;
43}
44
\No newline at end of file