@orbcharts/presets-basic 3.0.0-alpha.15 → 3.0.0-alpha.16
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +200 -200
- package/dist/orbcharts-presets-basic/src/chartParamsFiles/CP_LONG_PADDING.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/chartParamsFiles/index.d.ts +1 -0
- package/dist/orbcharts-presets-basic/src/gridDataFormatterFiles/DF_GRID_SEPARATE_SERIES.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/gridDataFormatterFiles/DF_LINE_AREAS_SEPARATE_SERIES.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/gridDataFormatterFiles/index.d.ts +2 -6
- package/dist/orbcharts-presets-basic/src/index.d.ts +7 -6
- package/dist/orbcharts-presets-basic/src/multiGridDataFormatterFiles/DF_MULTI_GRID_SEPARATE_GRID.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/multiGridDataFormatterFiles/index.d.ts +2 -6
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_DESC.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES_AND_DESC.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES_AND_DESC.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/index.d.ts +5 -1
- package/dist/orbcharts-presets-basic.es.js +329 -456
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/package.json +43 -43
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_LEFT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_LONG_PADDING.ts +14 -0
- package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +13 -13
- package/src/chartParamsFiles/index.ts +13 -11
- package/src/createPreset.ts +87 -87
- package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +16 -16
- package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +16 -16
- package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +16 -16
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +22 -22
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.ts +17 -17
- package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +14 -14
- package/src/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.ts +13 -13
- package/src/gridDataFormatterFiles/DF_GRID_SEPARATE_SERIES.ts +17 -0
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_2_SERIES_SLOT.ts +19 -19
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_3_SERIES_SLOT.ts +19 -19
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_4_SERIES_SLOT.ts +19 -19
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_SEPARATE_SERIES.ts +20 -0
- package/src/gridDataFormatterFiles/index.ts +12 -10
- package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +14 -14
- package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +14 -14
- package/src/gridPluginParamsFiles/Bars/index.ts +1 -1
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +12 -12
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +14 -14
- package/src/gridPluginParamsFiles/Dots/index.ts +1 -1
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +13 -13
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +14 -14
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +14 -14
- package/src/gridPluginParamsFiles/GridLegend/index.ts +2 -2
- package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +12 -12
- package/src/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.ts +11 -11
- package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +12 -12
- package/src/gridPluginParamsFiles/index.ts +6 -6
- package/src/index.ts +356 -290
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +21 -21
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +24 -24
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +27 -27
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_SEPARATE_GRID.ts +22 -0
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_2_GRID_SLOT.ts +27 -27
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_3_GRID_SLOT.ts +33 -33
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_4_GRID_SLOT.ts +39 -39
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_SEPARATE_GRID.ts +28 -0
- package/src/multiGridDataFormatterFiles/index.ts +8 -6
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +14 -14
- package/src/multiGridPluginParamsFiles/MultiBars/index.ts +5 -5
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +2 -2
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiDots/index.ts +2 -2
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +13 -13
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +27 -27
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +20 -20
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +21 -21
- package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_CURVE.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLineAreas/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiLines/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/index.ts +8 -8
- package/src/seriesDataFormatterFiles/DF_SERIES_DESC.ts +10 -0
- package/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES.ts +10 -0
- package/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES_AND_DESC.ts +11 -0
- package/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES.ts +10 -0
- package/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES_AND_DESC.ts +11 -0
- package/src/seriesDataFormatterFiles/index.ts +7 -1
- package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +11 -11
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +12 -12
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +14 -14
- package/src/seriesPluginParamsFiles/Pie/index.ts +1 -1
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +13 -13
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +13 -13
- package/src/seriesPluginParamsFiles/PieLabels/index.ts +1 -1
- package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +11 -11
- package/src/seriesPluginParamsFiles/index.ts +3 -3
- package/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.ts +13 -13
- package/src/types.ts +61 -61
- package/tsconfig.dev.json +17 -17
- package/tsconfig.json +17 -17
- package/tsconfig.prod.json +13 -13
- package/vite.config.js +44 -44
package/src/index.ts
CHANGED
@@ -1,291 +1,357 @@
|
|
1
|
-
import {
|
2
|
-
createSeriesPreset,
|
3
|
-
createGridPreset,
|
4
|
-
createMultiGridPreset,
|
5
|
-
createMultiValuePreset,
|
6
|
-
createRelationshipPreset,
|
7
|
-
createTreePreset } from './createPreset'
|
8
|
-
|
9
|
-
// -- series --
|
10
|
-
// 通用 - PRESET_SERIES_[name]
|
11
|
-
export const PRESET_SERIES_BASIC = createSeriesPreset({
|
12
|
-
// chartParamsId: 'CP_RIGHT_PADDING',
|
13
|
-
allPluginParamsIds: [],
|
14
|
-
description: '基本Series參數'
|
15
|
-
})
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
allPluginParamsIds: [
|
20
|
-
description: '
|
21
|
-
})
|
22
|
-
export const
|
23
|
-
// chartParamsId: 'CP_RIGHT_PADDING',
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
export const
|
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
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
allPluginParamsIds: ['
|
77
|
-
description: '
|
78
|
-
})
|
79
|
-
export const
|
80
|
-
chartParamsId: '
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
export const
|
93
|
-
chartParamsId: '
|
94
|
-
allPluginParamsIds: ['
|
95
|
-
description: '
|
96
|
-
})
|
97
|
-
export const
|
98
|
-
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
|
99
|
-
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
100
|
-
allPluginParamsIds: ['
|
101
|
-
description: '
|
102
|
-
})
|
103
|
-
export const
|
104
|
-
chartParamsId: 'CP_BOTTOM_PADDING',
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
//
|
115
|
-
export const
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
//
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
})
|
188
|
-
export const
|
189
|
-
chartParamsId: '
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
export const
|
195
|
-
chartParamsId:
|
196
|
-
dataFormatterId: '
|
197
|
-
allPluginParamsIds: ['
|
198
|
-
description: '
|
199
|
-
})
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
//
|
232
|
-
//
|
233
|
-
//
|
234
|
-
//
|
235
|
-
//
|
236
|
-
//
|
237
|
-
//
|
238
|
-
//
|
239
|
-
//
|
240
|
-
//
|
241
|
-
//
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
allPluginParamsIds: ['
|
259
|
-
description: '
|
260
|
-
})
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
//
|
282
|
-
|
283
|
-
//
|
284
|
-
|
285
|
-
//
|
286
|
-
//
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
1
|
+
import {
|
2
|
+
createSeriesPreset,
|
3
|
+
createGridPreset,
|
4
|
+
createMultiGridPreset,
|
5
|
+
createMultiValuePreset,
|
6
|
+
createRelationshipPreset,
|
7
|
+
createTreePreset } from './createPreset'
|
8
|
+
|
9
|
+
// -- series --
|
10
|
+
// 通用 - PRESET_SERIES_[name]
|
11
|
+
export const PRESET_SERIES_BASIC = createSeriesPreset({
|
12
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
13
|
+
allPluginParamsIds: [],
|
14
|
+
description: '基本Series參數'
|
15
|
+
})
|
16
|
+
export const PRESET_SERIES_DESC = createSeriesPreset({
|
17
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
18
|
+
dataFormatterId: 'DF_SERIES_DESC',
|
19
|
+
allPluginParamsIds: [],
|
20
|
+
description: '資料由大到小排序'
|
21
|
+
})
|
22
|
+
export const PRESET_SERIES_SEPARATE_SERIES = createSeriesPreset({
|
23
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
24
|
+
dataFormatterId: 'DF_SERIES_SEPARATE_SERIES',
|
25
|
+
allPluginParamsIds: [],
|
26
|
+
description: '分開顯示Series'
|
27
|
+
})
|
28
|
+
// export const PRESET_SERIES_SEPARATE_SERIES_AND_DESC = createSeriesPreset({
|
29
|
+
// // chartParamsId: 'CP_RIGHT_PADDING',
|
30
|
+
// dataFormatterId: 'DF_SERIES_SEPARATE_SERIES_AND_DESC',
|
31
|
+
// allPluginParamsIds: [],
|
32
|
+
// description: '分開顯示Series並排序'
|
33
|
+
// })
|
34
|
+
export const PRESET_SERIES_SUM_SERIES = createSeriesPreset({
|
35
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
36
|
+
dataFormatterId: 'DF_SERIES_SUM_SERIES',
|
37
|
+
allPluginParamsIds: [],
|
38
|
+
description: '合併Series資料'
|
39
|
+
})
|
40
|
+
// export const PRESET_SERIES_SUM_SERIES_AND_DESC = createSeriesPreset({
|
41
|
+
// // chartParamsId: 'CP_RIGHT_PADDING',
|
42
|
+
// dataFormatterId: 'DF_SERIES_SUM_SERIES_AND_DESC',
|
43
|
+
// allPluginParamsIds: [],
|
44
|
+
// description: '合併Series資料並排序'
|
45
|
+
// })
|
46
|
+
// Bubbles - PRESET_BUBBLES_[name]
|
47
|
+
export const PRESET_BUBBLES_BASIC = createSeriesPreset({
|
48
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
49
|
+
allPluginParamsIds: ['PP_SERIES_LEGEND_ROUND'],
|
50
|
+
description: '基本泡泡圖'
|
51
|
+
})
|
52
|
+
export const PRESET_BUBBLES_SCALING_BY_RADIUS = createSeriesPreset({
|
53
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
54
|
+
allPluginParamsIds: ['PP_BUBBLES_SCALING_BY_RADIUS', 'PP_SERIES_LEGEND_ROUND'],
|
55
|
+
description: '以半徑尺寸為比例的泡泡圖'
|
56
|
+
})
|
57
|
+
export const PRESET_BUBBLES_SEPARATE_SERIES = createSeriesPreset({
|
58
|
+
chartParamsId: 'CP_LONG_PADDING',
|
59
|
+
dataFormatterId: 'DF_SERIES_SEPARATE_SERIES',
|
60
|
+
allPluginParamsIds: [],
|
61
|
+
description: '分開顯示Series泡泡'
|
62
|
+
})
|
63
|
+
// Pie - PRESET_PIE_[name]
|
64
|
+
export const PRESET_PIE_BASIC = createSeriesPreset({
|
65
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
66
|
+
allPluginParamsIds: ['PP_SERIES_LEGEND_ROUND'],
|
67
|
+
description: '基本圓餅圖'
|
68
|
+
})
|
69
|
+
export const PRESET_PIE_WITH_INNER_LABELS = createSeriesPreset({
|
70
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
71
|
+
allPluginParamsIds: ['PP_PIE_LABELS_INNER', 'PP_SERIES_LEGEND_ROUND'],
|
72
|
+
description: '圓餅圖及內部資料標籤'
|
73
|
+
})
|
74
|
+
export const PRESET_PIE_DONUT = createSeriesPreset({
|
75
|
+
// chartParamsId: 'CP_RIGHT_PADDING',
|
76
|
+
allPluginParamsIds: ['PP_PIE_DONUT', 'PP_SERIES_LEGEND_ROUND'],
|
77
|
+
description: '甜甜圈圖'
|
78
|
+
})
|
79
|
+
export const PRESET_PIE_HALF_DONUT = createSeriesPreset({
|
80
|
+
chartParamsId: 'CP_TOP_AND_NO_BOTTOM_PADDING',
|
81
|
+
allPluginParamsIds: ['PP_PIE_HALF_DONUT', 'PP_PIE_LABELS_HALF_ANGLE', 'PP_SERIES_LEGEND_ROUND'],
|
82
|
+
description: '半圓甜甜圈圖'
|
83
|
+
})
|
84
|
+
|
85
|
+
// -- grid --
|
86
|
+
// 通用 - PRESET_GRID_[name]
|
87
|
+
export const PRESET_GRID_BASIC = createGridPreset({
|
88
|
+
chartParamsId: 'CP_BOTTOM_PADDING',
|
89
|
+
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
|
90
|
+
description: '基本Grid參數'
|
91
|
+
})
|
92
|
+
export const PRESET_GRID_ROTATE_AXIS_LABEL = createGridPreset({
|
93
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
94
|
+
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
95
|
+
description: '傾斜標籤'
|
96
|
+
})
|
97
|
+
export const PRESET_GRID_HORIZONTAL = createGridPreset({
|
98
|
+
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
|
99
|
+
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
100
|
+
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
|
101
|
+
description: '橫向圖'
|
102
|
+
})
|
103
|
+
export const PRESET_GRID_DIVERGING_SCALE = createGridPreset({
|
104
|
+
chartParamsId: 'CP_BOTTOM_PADDING',
|
105
|
+
dataFormatterId: 'DF_GRID_DIVERGING_SCALE',
|
106
|
+
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
|
107
|
+
description: '正負值分向圖'
|
108
|
+
})
|
109
|
+
// export const PRESET_GRID_2_SERIES_SLOT = createGridPreset({
|
110
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
111
|
+
// dataFormatterId: 'DF_GRID_SEPARATE_SERIES',
|
112
|
+
// allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
113
|
+
// description: '2組Series圖表'
|
114
|
+
// })
|
115
|
+
// export const PRESET_GRID_3_SERIES_SLOT = createGridPreset({
|
116
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
117
|
+
// dataFormatterId: 'DF_GRID_SEPARATE_SERIES',
|
118
|
+
// allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM', 'PP_GROUP_AXIS_ROTATE_LABEL'],
|
119
|
+
// description: '3組Series圖表'
|
120
|
+
// })
|
121
|
+
// export const PRESET_GRID_4_SERIES_SLOT = createGridPreset({
|
122
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
123
|
+
// dataFormatterId: 'DF_GRID_SEPARATE_SERIES',
|
124
|
+
// allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
125
|
+
// description: '4組Series圖表'
|
126
|
+
// })
|
127
|
+
export const PRESET_GRID_SEPARATE_SERIES = createGridPreset({
|
128
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
129
|
+
dataFormatterId: 'DF_GRID_SEPARATE_SERIES',
|
130
|
+
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
131
|
+
description: '分開顯示Series'
|
132
|
+
})
|
133
|
+
// Bars - PRESET_BARS_[name]
|
134
|
+
export const PRESET_BARS_ROUND = createGridPreset({
|
135
|
+
chartParamsId: 'CP_BOTTOM_PADDING',
|
136
|
+
allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
|
137
|
+
description: '圓角長條圖'
|
138
|
+
})
|
139
|
+
export const PRESET_BARS_HORIZONTAL_AND_ROUND = createGridPreset({
|
140
|
+
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
|
141
|
+
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
142
|
+
allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
|
143
|
+
description: '橫向圓角長條圖'
|
144
|
+
})
|
145
|
+
export const PRESET_BARS_THIN = createGridPreset({
|
146
|
+
chartParamsId: 'CP_BOTTOM_PADDING',
|
147
|
+
allPluginParamsIds: ['PP_BARS_THIN', 'PP_GRID_LEGEND_BOTTOM'],
|
148
|
+
description: '細長條圖'
|
149
|
+
})
|
150
|
+
export const PRESET_BARS_HORIZONTAL_AND_THIN = createGridPreset({
|
151
|
+
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
|
152
|
+
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
153
|
+
allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
|
154
|
+
description: '橫向圓角長條圖'
|
155
|
+
})
|
156
|
+
// Lines - PRESET_LINES_[name]
|
157
|
+
export const PRESET_LINES_BASIC = createGridPreset({
|
158
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
159
|
+
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
160
|
+
description: '基本Grid參數'
|
161
|
+
})
|
162
|
+
export const PRESET_LINES_ROTATE_AXIS_LABEL = createGridPreset({
|
163
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT',
|
164
|
+
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
165
|
+
description: '傾斜標籤'
|
166
|
+
})
|
167
|
+
export const PRESET_LINES_HORIZONTAL = createGridPreset({
|
168
|
+
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT',
|
169
|
+
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
170
|
+
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
171
|
+
description: '橫向折線圖'
|
172
|
+
})
|
173
|
+
export const PRESET_LINES_WITH_SOLID_DOTS = createGridPreset({
|
174
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
175
|
+
allPluginParamsIds: ['PP_DOTS_SOLID', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
176
|
+
description: '折線圖及實心圓點'
|
177
|
+
})
|
178
|
+
export const PRESET_LINES_CURVE = createGridPreset({
|
179
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
180
|
+
allPluginParamsIds: ['PP_LINES_CURVE', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
181
|
+
description: '弧線折線圖'
|
182
|
+
})
|
183
|
+
// export const PRESET_LINES_CURVES_WITH_SOLID_DOTS = createGridPreset({
|
184
|
+
// chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
185
|
+
// allPluginParamsIds: ['PP_LINES_CURVE', 'PP_DOTS_SOLID', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
186
|
+
// description: '弧線折線圖及實心圓點'
|
187
|
+
// })
|
188
|
+
export const PRESET_LINES_HIGHLIGHT_GROUP_DOTS = createGridPreset({
|
189
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT',
|
190
|
+
allPluginParamsIds: ['PP_DOTS_ONLY_SHOW_HIGHLIGHTED', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
191
|
+
description: '折線圖及Highlight Group圓點'
|
192
|
+
})
|
193
|
+
// LineAreas - PRESET_LINE_AREAS_[name]
|
194
|
+
export const PRESET_LINE_AREAS_BASIC = createGridPreset({
|
195
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
196
|
+
dataFormatterId: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
|
197
|
+
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
198
|
+
description: '基本Grid參數'
|
199
|
+
})
|
200
|
+
export const PRESET_LINE_AREAS_ROTATE_AXIS_LABEL = createGridPreset({
|
201
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT',
|
202
|
+
dataFormatterId: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
|
203
|
+
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
204
|
+
description: '傾斜標籤'
|
205
|
+
})
|
206
|
+
export const PRESET_LINE_AREAS_HORIZONTAL = createGridPreset({
|
207
|
+
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT',
|
208
|
+
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING',
|
209
|
+
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
210
|
+
description: '橫向折線圖'
|
211
|
+
})
|
212
|
+
export const PRESET_LINE_AREAS_CURVE = createGridPreset({
|
213
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
214
|
+
dataFormatterId: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
|
215
|
+
allPluginParamsIds: ['PP_LINES_CURVE', 'PP_LINE_AREAS_CURVE', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
216
|
+
description: '弧線折線圖'
|
217
|
+
})
|
218
|
+
export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS = createGridPreset({
|
219
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT',
|
220
|
+
dataFormatterId: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
|
221
|
+
allPluginParamsIds: ['PP_DOTS_ONLY_SHOW_HIGHLIGHTED', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
222
|
+
description: '折線圖及Highlight Group圓點'
|
223
|
+
})
|
224
|
+
// export const PRESET_LINE_AREAS_2_SERIES_SLOT = createGridPreset({
|
225
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
226
|
+
// dataFormatterId: 'DF_LINE_AREAS_SEPARATE_SERIES',
|
227
|
+
// allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
228
|
+
// description: '2組Series圖表'
|
229
|
+
// })
|
230
|
+
// export const PRESET_LINE_AREAS_3_SERIES_SLOT = createGridPreset({
|
231
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
232
|
+
// dataFormatterId: 'DF_LINE_AREAS_SEPARATE_SERIES',
|
233
|
+
// allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM', 'PP_GROUP_AXIS_ROTATE_LABEL'],
|
234
|
+
// description: '3組Series圖表'
|
235
|
+
// })
|
236
|
+
// export const PRESET_LINE_AREAS_4_SERIES_SLOT = createGridPreset({
|
237
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
238
|
+
// dataFormatterId: 'DF_LINE_AREAS_SEPARATE_SERIES',
|
239
|
+
// allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
240
|
+
// description: '4組Series圖表'
|
241
|
+
// })
|
242
|
+
export const PRESET_LINE_AREAS_SEPARATE_GRID = createGridPreset({
|
243
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
244
|
+
dataFormatterId: 'DF_LINE_AREAS_SEPARATE_SERIES',
|
245
|
+
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
246
|
+
description: 'LineAreas 分開顯示Series'
|
247
|
+
})
|
248
|
+
|
249
|
+
// -- multi-grid --
|
250
|
+
// 通用 - PRESET_MULTI_GRID_[name]
|
251
|
+
export const PRESET_MULTI_GRID_BASIC = createMultiGridPreset({
|
252
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
253
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST'],
|
254
|
+
description: '基本MultiGrid參數'
|
255
|
+
})
|
256
|
+
export const PRESET_MULTI_GRID_ROUND_STYLE = createMultiGridPreset({
|
257
|
+
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
258
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST', 'PP_MULTI_BARS_ROUND', 'PP_MULTI_LINES_CURVE'],
|
259
|
+
description: 'MultiGrid圓弧風格'
|
260
|
+
})
|
261
|
+
export const PRESET_MULTI_GRID_2_GRID_SLOT = createMultiGridPreset({
|
262
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
263
|
+
dataFormatterId: 'DF_MULTI_GRID_SEPARATE_GRID',
|
264
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT', 'PP_MULTI_BARS_2_GRID_SLOT', 'PP_MULTI_BAR_STACK_2_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT', 'PP_MULTI_LINES_2_GRID_SLOT', 'PP_MULTI_LINE_AREAS_2_GRID_SLOT', 'PP_MULTI_DOTS_2_GRID_SLOT'],
|
265
|
+
description: '2組Grid圖表'
|
266
|
+
})
|
267
|
+
export const PRESET_MULTI_GRID_3_GRID_SLOT = createMultiGridPreset({
|
268
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
269
|
+
dataFormatterId: 'DF_MULTI_GRID_SEPARATE_GRID',
|
270
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT', 'PP_MULTI_BARS_3_GRID_SLOT', 'PP_MULTI_BAR_STACK_3_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT', 'PP_MULTI_LINES_3_GRID_SLOT', 'PP_MULTI_LINE_AREAS_3_GRID_SLOT', 'PP_MULTI_DOTS_3_GRID_SLOT'],
|
271
|
+
description: '3組Grid圖表'
|
272
|
+
})
|
273
|
+
export const PRESET_MULTI_GRID_4_GRID_SLOT = createMultiGridPreset({
|
274
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
275
|
+
dataFormatterId: 'DF_MULTI_GRID_SEPARATE_GRID',
|
276
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT', 'PP_MULTI_LINE_AREAS_4_GRID_SLOT', 'PP_MULTI_DOTS_4_GRID_SLOT'],
|
277
|
+
description: '4組Grid圖表'
|
278
|
+
})
|
279
|
+
// export const PRESET_MULTI_GRID_SEPARATE_GRID = createMultiGridPreset({
|
280
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
281
|
+
// dataFormatterId: 'DF_MULTI_GRID_SEPARATE_GRID',
|
282
|
+
// allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT', 'PP_MULTI_BARS_2_GRID_SLOT', 'PP_MULTI_BAR_STACK_2_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT', 'PP_MULTI_LINES_2_GRID_SLOT', 'PP_MULTI_LINE_AREAS_2_GRID_SLOT', 'PP_MULTI_DOTS_2_GRID_SLOT'],
|
283
|
+
// description: '分開顯示Grid'
|
284
|
+
// })
|
285
|
+
// // MultiBars, MultiLines - PRESET_MULTI_BARS_MULTI_LINES_[name]
|
286
|
+
// export const PRESET_MULTI_BARS_MULTI_LINES_BASIC = createMultiGridPreset({
|
287
|
+
// chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
288
|
+
// allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST'],
|
289
|
+
// description: '基本MultiGrid參數'
|
290
|
+
// })
|
291
|
+
// MultiLines - PRESET_MULTI_LINES_[name]
|
292
|
+
// export const PRESET_MULTI_LINES_BASIC = createMultiGridPreset({
|
293
|
+
// chartParamsId: 'CP_BOTTOM_PADDING',
|
294
|
+
// allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
295
|
+
// description: '基本MultiGrid參數'
|
296
|
+
// })
|
297
|
+
export const PRESET_MULTI_LINES_2_GRID_SLOT = createMultiGridPreset({
|
298
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
299
|
+
dataFormatterId: 'DF_MULTI_GRID_SEPARATE_GRID',
|
300
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT', 'PP_MULTI_BARS_2_GRID_SLOT', 'PP_MULTI_BAR_STACK_2_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT', 'PP_MULTI_LINES_2_GRID_SLOT', 'PP_MULTI_LINE_AREAS_2_GRID_SLOT', 'PP_MULTI_DOTS_2_GRID_SLOT'],
|
301
|
+
description: '2組折線圖表'
|
302
|
+
})
|
303
|
+
export const PRESET_MULTI_LINES_3_GRID_SLOT = createMultiGridPreset({
|
304
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
305
|
+
dataFormatterId: 'DF_MULTI_GRID_SEPARATE_GRID',
|
306
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT', 'PP_MULTI_BARS_3_GRID_SLOT', 'PP_MULTI_BAR_STACK_3_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT', 'PP_MULTI_LINES_3_GRID_SLOT', 'PP_MULTI_LINE_AREAS_3_GRID_SLOT', 'PP_MULTI_DOTS_3_GRID_SLOT'],
|
307
|
+
description: '3組折線圖表'
|
308
|
+
})
|
309
|
+
export const PRESET_MULTI_LINES_4_GRID_SLOT = createMultiGridPreset({
|
310
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
311
|
+
dataFormatterId: 'DF_MULTI_GRID_SEPARATE_GRID',
|
312
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT', 'PP_MULTI_LINE_AREAS_4_GRID_SLOT', 'PP_MULTI_DOTS_4_GRID_SLOT'],
|
313
|
+
description: '4組折線圖表'
|
314
|
+
})
|
315
|
+
// export const PRESET_MULTI_LINES_SEPARATE_GRID = createMultiGridPreset({
|
316
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
317
|
+
// dataFormatterId: 'DF_MULTI_GRID_SEPARATE_GRID',
|
318
|
+
// allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT', 'PP_MULTI_LINE_AREAS_4_GRID_SLOT', 'PP_MULTI_DOTS_4_GRID_SLOT'],
|
319
|
+
// description: '折線圖表分開顯示Grid'
|
320
|
+
// })
|
321
|
+
// MultiLineAreas - PRESET_MULTI_LINE_AREAS_[name]
|
322
|
+
export const PRESET_MULTI_LINE_AREAS_2_GRID_SLOT = createMultiGridPreset({
|
323
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
324
|
+
dataFormatterId: 'DF_MULTI_LINE_AREAS_SEPARATE_GRID',
|
325
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT', 'PP_MULTI_BARS_2_GRID_SLOT', 'PP_MULTI_BAR_STACK_2_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT', 'PP_MULTI_LINES_2_GRID_SLOT', 'PP_MULTI_LINE_AREAS_2_GRID_SLOT', 'PP_MULTI_DOTS_2_GRID_SLOT'],
|
326
|
+
description: '2組折線圖表'
|
327
|
+
})
|
328
|
+
export const PRESET_MULTI_LINE_AREAS_3_GRID_SLOT = createMultiGridPreset({
|
329
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
330
|
+
dataFormatterId: 'DF_MULTI_LINE_AREAS_SEPARATE_GRID',
|
331
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT', 'PP_MULTI_BARS_3_GRID_SLOT', 'PP_MULTI_BAR_STACK_3_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT', 'PP_MULTI_LINES_3_GRID_SLOT', 'PP_MULTI_LINE_AREAS_3_GRID_SLOT', 'PP_MULTI_DOTS_3_GRID_SLOT'],
|
332
|
+
description: '3組折線圖表'
|
333
|
+
})
|
334
|
+
export const PRESET_MULTI_LINE_AREAS_4_GRID_SLOT = createMultiGridPreset({
|
335
|
+
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
336
|
+
dataFormatterId: 'DF_MULTI_LINE_AREAS_SEPARATE_GRID',
|
337
|
+
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT', 'PP_MULTI_LINE_AREAS_4_GRID_SLOT', 'PP_MULTI_DOTS_4_GRID_SLOT'],
|
338
|
+
description: '4組折線圖表'
|
339
|
+
})
|
340
|
+
// export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID = createMultiGridPreset({
|
341
|
+
// chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
342
|
+
// dataFormatterId: 'DF_MULTI_LINE_AREAS_SEPARATE_GRID',
|
343
|
+
// allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT', 'PP_MULTI_LINE_AREAS_4_GRID_SLOT', 'PP_MULTI_DOTS_4_GRID_SLOT'],
|
344
|
+
// description: '折線區域圖表分開顯示Grid'
|
345
|
+
// })
|
346
|
+
|
347
|
+
// -- multi-value --
|
348
|
+
|
349
|
+
// -- relationship --
|
350
|
+
|
351
|
+
// -- tree --
|
352
|
+
// 通用 - PRESET_TREE_[name]
|
353
|
+
export const PRESET_TREE_BASIC = createTreePreset({
|
354
|
+
chartParamsId: 'CP_BOTTOM_SLIGHT_PADDING',
|
355
|
+
allPluginParamsIds: ['PP_TREE_LEGEND_BOTTOM'],
|
356
|
+
description: '基本Tree參數'
|
291
357
|
})
|