-
Notifications
You must be signed in to change notification settings - Fork 346
/
IData.ts
64 lines (54 loc) 路 1.13 KB
/
IData.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
* @ignore
*/
type TDataRow = {
value: number | null;
id: string;
index: number;
name?: string;
};
export type TDomain = Date | number;
export type TDomainRange = [TDomain, TDomain];
export interface ITreemapData {
name: string;
id?: string; // for compatibility
value?: number;
ratio?: number;
children?: ITreemapData[];
}
export interface IDataRow extends TDataRow {
x: TDomain & string;
}
export interface IDataPoint extends IDataRow {
r: number;
}
export interface IArcDataRow extends TDataRow {
ratio: number;
}
export interface IData {
id: string;
id_org: string;
values: IDataRow[];
}
export interface IArcData {
data: IData;
index: number;
padAngle: number;
startAngle: number;
endAngle: number;
value: number | null;
}
export interface IGridData {
axis?: string;
text: string;
value: number;
}
export interface IDataIndice {
[key: string]: number;
__max__: number;
}
export type TIndices = {} | {
[key:string]: IDataIndice
};