1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | interface Preset {
|
8 | legend?: 'color'|'lightness'|'size'|null;
|
9 | title?: string|null;
|
10 | reverse?: boolean;
|
11 | sort?: 'none'|'byValue';
|
12 | }
|
13 |
|
14 | interface Column extends Preset {
|
15 | x: string[]|string;
|
16 | y: string[]|string;
|
17 | }
|
18 |
|
19 | interface GroupedColumn extends Preset {
|
20 | groupedBy: string[]|string;
|
21 | x: string[]|string;
|
22 | y: string[]|string;
|
23 | }
|
24 |
|
25 | interface StackedColumn extends Preset {
|
26 | x: string[]|string;
|
27 | y: string[]|string;
|
28 | stackedBy: string[]|string;
|
29 | }
|
30 |
|
31 | interface SplittedColumn extends Preset {
|
32 | x: string[]|string;
|
33 | y: string[]|string;
|
34 | splittedBy: string[]|string;
|
35 | }
|
36 |
|
37 | interface PercentageColumn extends Preset {
|
38 | x: string[]|string;
|
39 | y: string[]|string;
|
40 | stackedBy: string[]|string;
|
41 | }
|
42 |
|
43 | interface Waterfall extends Preset {
|
44 | x: string[]|string;
|
45 | y: string[]|string;
|
46 | }
|
47 |
|
48 | interface Mekko extends Preset {
|
49 | x: string[]|string;
|
50 | groupedBy: string[]|string;
|
51 | y: string[]|string;
|
52 | stackedBy: string[]|string;
|
53 | }
|
54 |
|
55 | interface Marimekko extends Preset {
|
56 | x: string[]|string;
|
57 | groupedBy: string[]|string;
|
58 | y: string[]|string;
|
59 | stackedBy: string[]|string;
|
60 | }
|
61 |
|
62 | interface Bar extends Preset {
|
63 | x: string[]|string;
|
64 | y: string[]|string;
|
65 | }
|
66 |
|
67 | interface GroupedBar extends Preset {
|
68 | x: string[]|string;
|
69 | groupedBy: string[]|string;
|
70 | y: string[]|string;
|
71 | }
|
72 |
|
73 | interface StackedBar extends Preset {
|
74 | x: string[]|string;
|
75 | stackedBy: string[]|string;
|
76 | y: string[]|string;
|
77 | }
|
78 |
|
79 | interface SplittedBar extends Preset {
|
80 | x: string[]|string;
|
81 | splittedBy: string[]|string;
|
82 | y: string[]|string;
|
83 | }
|
84 |
|
85 | interface PercentageBar extends Preset {
|
86 | x: string[]|string;
|
87 | stackedBy: string[]|string;
|
88 | y: string[]|string;
|
89 | }
|
90 |
|
91 | interface Lollipop extends Preset {
|
92 | x: string[]|string;
|
93 | y: string[]|string;
|
94 | }
|
95 |
|
96 | interface Scatter extends Preset {
|
97 | x: string[]|string;
|
98 | y: string[]|string;
|
99 | dividedBy: string[]|string;
|
100 | }
|
101 |
|
102 | interface Bubbleplot extends Preset {
|
103 | x: string[]|string;
|
104 | y: string[]|string;
|
105 | color: string[]|string;
|
106 | size: string[]|string;
|
107 | dividedBy: string[]|string;
|
108 | }
|
109 |
|
110 | interface Area extends Preset {
|
111 | x: string[]|string;
|
112 | y: string[]|string;
|
113 | }
|
114 |
|
115 | interface StackedArea extends Preset {
|
116 | x: string[]|string;
|
117 | y: string[]|string;
|
118 | stackedBy: string[]|string;
|
119 | }
|
120 |
|
121 | interface PercentageArea extends Preset {
|
122 | x: string[]|string;
|
123 | y: string[]|string;
|
124 | stackedBy: string[]|string;
|
125 | }
|
126 |
|
127 | interface SplittedArea extends Preset {
|
128 | x: string[]|string;
|
129 | y: string[]|string;
|
130 | splittedBy: string[]|string;
|
131 | }
|
132 |
|
133 | interface Stream extends Preset {
|
134 | x: string[]|string;
|
135 | y: string[]|string;
|
136 | stackedBy: string[]|string;
|
137 | }
|
138 |
|
139 | interface VerticalStream extends Preset {
|
140 | x: string[]|string;
|
141 | stackedBy: string[]|string;
|
142 | y: string[]|string;
|
143 | }
|
144 |
|
145 | interface Violin extends Preset {
|
146 | x: string[]|string;
|
147 | y: string[]|string;
|
148 | splittedBy: string[]|string;
|
149 | }
|
150 |
|
151 | interface VerticalViolin extends Preset {
|
152 | x: string[]|string;
|
153 | splittedBy: string[]|string;
|
154 | y: string[]|string;
|
155 | }
|
156 |
|
157 | interface Line extends Preset {
|
158 | x: string[]|string;
|
159 | y: string[]|string;
|
160 | dividedBy: string[]|string;
|
161 | }
|
162 |
|
163 | interface VerticalLine extends Preset {
|
164 | x: string[]|string;
|
165 | y: string[]|string;
|
166 | dividedBy: string[]|string;
|
167 | }
|
168 |
|
169 | interface Pie extends Preset {
|
170 | angle: string[]|string;
|
171 | by: string[]|string;
|
172 | }
|
173 |
|
174 | interface PolarColumn extends Preset {
|
175 | angle: string[]|string;
|
176 | radius: string[]|string;
|
177 | }
|
178 |
|
179 | interface PolarStackedColumn extends Preset {
|
180 | angle: string[]|string;
|
181 | radius: string[]|string;
|
182 | stackedBy: string[]|string;
|
183 | }
|
184 |
|
185 | interface VariableRadiusPie extends Preset {
|
186 | angle: string[]|string;
|
187 | by: string[]|string;
|
188 | radius: string[]|string;
|
189 | }
|
190 |
|
191 | interface RadialBar extends Preset {
|
192 | angle: string[]|string;
|
193 | radius: string[]|string;
|
194 | }
|
195 |
|
196 | interface RadialStackedBar extends Preset {
|
197 | angle: string[]|string;
|
198 | stackedBy: string[]|string;
|
199 | radius: string[]|string;
|
200 | }
|
201 |
|
202 | interface Donut extends Preset {
|
203 | angle: string[]|string;
|
204 | stackedBy: string[]|string;
|
205 | }
|
206 |
|
207 | interface NestedDonut extends Preset {
|
208 | angle: string[]|string;
|
209 | stackedBy: string[]|string;
|
210 | radius: string[]|string;
|
211 | }
|
212 |
|
213 | interface PolarScatter extends Preset {
|
214 | angle: string[]|string;
|
215 | radius: string[]|string;
|
216 | dividedBy: string[]|string;
|
217 | }
|
218 |
|
219 | interface PolarLine extends Preset {
|
220 | angle: string[]|string;
|
221 | radius: string[]|string;
|
222 | dividedBy: string[]|string;
|
223 | }
|
224 |
|
225 | interface Treemap extends Preset {
|
226 | size: string[]|string;
|
227 | color: string[]|string;
|
228 | }
|
229 |
|
230 | interface StackedTreemap extends Preset {
|
231 | size: string[]|string;
|
232 | dividedBy: string[]|string;
|
233 | color: string[]|string;
|
234 | }
|
235 |
|
236 | interface Heatmap extends Preset {
|
237 | x: string[]|string;
|
238 | y: string[]|string;
|
239 | lightness: string[]|string;
|
240 | }
|
241 |
|
242 | interface Bubble extends Preset {
|
243 | size: string[]|string;
|
244 | color: string[]|string;
|
245 | }
|
246 |
|
247 | interface StackedBubble extends Preset {
|
248 | size: string[]|string;
|
249 | stackedBy: string[]|string;
|
250 | color: string[]|string;
|
251 | }
|
252 |
|
253 |
|
254 |
|
255 | export class Presets {
|
256 | constructor();
|
257 | column(config: Column): any;
|
258 | groupedColumn(config: GroupedColumn): any;
|
259 | stackedColumn(config: StackedColumn): any;
|
260 | splittedColumn(config: SplittedColumn): any;
|
261 | percentageColumn(config: PercentageColumn): any;
|
262 | waterfall(config: Waterfall): any;
|
263 | mekko(config: Mekko): any;
|
264 | marimekko(config: Marimekko): any;
|
265 | bar(config: Bar): any;
|
266 | groupedBar(config: GroupedBar): any;
|
267 | stackedBar(config: StackedBar): any;
|
268 | splittedBar(config: SplittedBar): any;
|
269 | percentageBar(config: PercentageBar): any;
|
270 | lollipop(config: Lollipop): any;
|
271 | scatter(config: Scatter): any;
|
272 | bubbleplot(config: Bubbleplot): any;
|
273 | area(config: Area): any;
|
274 | stackedArea(config: StackedArea): any;
|
275 | percentageArea(config: PercentageArea): any;
|
276 | splittedArea(config: SplittedArea): any;
|
277 | stream(config: Stream): any;
|
278 | verticalStream(config: VerticalStream): any;
|
279 | violin(config: Violin): any;
|
280 | verticalViolin(config: VerticalViolin): any;
|
281 | line(config: Line): any;
|
282 | verticalLine(config: VerticalLine): any;
|
283 | pie(config: Pie): any;
|
284 | polarColumn(config: PolarColumn): any;
|
285 | polarStackedColumn(config: PolarStackedColumn): any;
|
286 | variableRadiusPie(config: VariableRadiusPie): any;
|
287 | radialBar(config: RadialBar): any;
|
288 | radialStackedBar(config: RadialStackedBar): any;
|
289 | donut(config: Donut): any;
|
290 | nestedDonut(config: NestedDonut): any;
|
291 | polarScatter(config: PolarScatter): any;
|
292 | polarLine(config: PolarLine): any;
|
293 | treemap(config: Treemap): any;
|
294 | stackedTreemap(config: StackedTreemap): any;
|
295 | heatmap(config: Heatmap): any;
|
296 | bubble(config: Bubble): any;
|
297 | stackedBubble(config: StackedBubble): any;
|
298 | }
|
299 |
|