1 | export type ScaleType = 'base' | 'linear' | 'cat' | 'log' | 'pow' | 'identity' | 'time' | 'timeCat';
|
2 |
|
3 | export type TickMethod = (ScaleConfig) => any[];
|
4 |
|
5 | export interface Tick {
|
6 |
|
7 | text: string;
|
8 |
|
9 | value: number;
|
10 |
|
11 | tickValue: string | number;
|
12 | }
|
13 |
|
14 | export type ScaleConfig = Partial<{
|
15 |
|
16 | field: string;
|
17 |
|
18 | values: any[];
|
19 |
|
20 | min: any;
|
21 |
|
22 | max: any;
|
23 |
|
24 | minLimit?: any;
|
25 |
|
26 | maxLimit?: any;
|
27 |
|
28 |
|
29 | alias: string;
|
30 |
|
31 | range: number[];
|
32 |
|
33 | base: number;
|
34 |
|
35 | exponent: number;
|
36 |
|
37 |
|
38 |
|
39 | nice: boolean;
|
40 |
|
41 | ticks: any[];
|
42 |
|
43 | tickInterval: number;
|
44 |
|
45 | minTickInterval: number;
|
46 |
|
47 | tickCount: number;
|
48 |
|
49 | maxTickCount: number;
|
50 |
|
51 | formatter: (value: any, index?: number) => any;
|
52 |
|
53 | tickMethod: string | TickMethod;
|
54 |
|
55 | mask?: string;
|
56 |
|
57 | showLast?: boolean;
|
58 | }>;
|