@orbcharts/presets-basic 3.0.0-alpha.34 → 3.0.0-alpha.36
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/orbcharts-presets-basic.es.js +143 -93
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/series/{PRESET_SERIES_DESC.d.ts → PRESET_PIE_BASIC.d.ts} +1 -1
- package/dist/src/series/PRESET_ROSE_BASIC.d.ts +4 -0
- package/dist/src/series/index.d.ts +2 -1
- package/package.json +3 -3
- package/src/series/{PRESET_SERIES_DESC.ts → PRESET_PIE_BASIC.ts} +7 -4
- package/src/series/PRESET_PIE_DONUT.ts +4 -0
- package/src/series/PRESET_PIE_HALF_DONUT.ts +4 -0
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +4 -0
- package/src/series/PRESET_ROSE_BASIC.ts +19 -0
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +4 -0
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +2 -0
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +2 -0
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +2 -0
- package/src/series/index.ts +3 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const a = {
|
2
2
|
Bubbles: {},
|
3
3
|
Pie: {},
|
4
4
|
PieEventTexts: {},
|
@@ -6,7 +6,7 @@ const i = {
|
|
6
6
|
Rose: {},
|
7
7
|
RoseLabels: {},
|
8
8
|
SeriesLegend: {}
|
9
|
-
},
|
9
|
+
}, r = {
|
10
10
|
Bars: {},
|
11
11
|
BarsPN: {},
|
12
12
|
BarStack: {},
|
@@ -35,7 +35,7 @@ const i = {
|
|
35
35
|
OverlappingValueStackAxes: {}
|
36
36
|
}, t = {
|
37
37
|
Tooltip: {}
|
38
|
-
},
|
38
|
+
}, _ = {
|
39
39
|
name: "PRESET_BUBBLES_SCALING_BY_RADIUS",
|
40
40
|
description: "以半徑尺寸為比例的泡泡圖",
|
41
41
|
allPluginParams: {
|
@@ -48,7 +48,7 @@ const i = {
|
|
48
48
|
// 圓型圖例列點
|
49
49
|
}
|
50
50
|
}
|
51
|
-
},
|
51
|
+
}, P = {
|
52
52
|
name: "PRESET_BUBBLES_SEPARATE_SERIES",
|
53
53
|
description: "分開顯示Series泡泡",
|
54
54
|
chartParams: {
|
@@ -71,9 +71,28 @@ const i = {
|
|
71
71
|
// 圓型圖例列點
|
72
72
|
}
|
73
73
|
}
|
74
|
-
},
|
74
|
+
}, o = {
|
75
|
+
name: "PRESET_PIE_BASIC",
|
76
|
+
description: "基本Pie參數",
|
77
|
+
dataFormatter: {
|
78
|
+
sort: (i, e) => e.value - i.value
|
79
|
+
},
|
80
|
+
allPluginParams: {
|
81
|
+
...a,
|
82
|
+
...t,
|
83
|
+
SeriesLegend: {
|
84
|
+
listRectRadius: 7
|
85
|
+
// 圓型圖例列點
|
86
|
+
}
|
87
|
+
}
|
88
|
+
};
|
89
|
+
o.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
90
|
+
const n = {
|
75
91
|
name: "PRESET_PIE_DONUT",
|
76
92
|
description: "甜甜圈圖",
|
93
|
+
dataFormatter: {
|
94
|
+
sort: (i, e) => e.value - i.value
|
95
|
+
},
|
77
96
|
allPluginParams: {
|
78
97
|
...t,
|
79
98
|
Pie: {
|
@@ -86,7 +105,9 @@ const i = {
|
|
86
105
|
// 圓型圖例列點
|
87
106
|
}
|
88
107
|
}
|
89
|
-
}
|
108
|
+
};
|
109
|
+
n.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
110
|
+
const l = {
|
90
111
|
name: "PRESET_PIE_HALF_DONUT",
|
91
112
|
description: "半圓甜甜圈圖",
|
92
113
|
chartParams: {
|
@@ -97,6 +118,9 @@ const i = {
|
|
97
118
|
left: 60
|
98
119
|
}
|
99
120
|
},
|
121
|
+
dataFormatter: {
|
122
|
+
sort: (i, e) => e.value - i.value
|
123
|
+
},
|
100
124
|
allPluginParams: {
|
101
125
|
...t,
|
102
126
|
Pie: {
|
@@ -114,9 +138,14 @@ const i = {
|
|
114
138
|
// 圓型圖例列點
|
115
139
|
}
|
116
140
|
}
|
117
|
-
}
|
141
|
+
};
|
142
|
+
l.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
143
|
+
const d = {
|
118
144
|
name: "PRESET_PIE_WITH_INNER_LABELS",
|
119
145
|
description: "圓餅圖及內部資料標籤",
|
146
|
+
dataFormatter: {
|
147
|
+
sort: (i, e) => e.value - i.value
|
148
|
+
},
|
120
149
|
allPluginParams: {
|
121
150
|
...t,
|
122
151
|
Pie: {},
|
@@ -131,9 +160,30 @@ const i = {
|
|
131
160
|
// 圓型圖例列點
|
132
161
|
}
|
133
162
|
}
|
134
|
-
}
|
163
|
+
};
|
164
|
+
d.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
165
|
+
const g = {
|
166
|
+
name: "PRESET_ROSE_BASIC",
|
167
|
+
description: "基本Rose參數",
|
168
|
+
dataFormatter: {
|
169
|
+
sort: (i, e) => e.value - i.value
|
170
|
+
},
|
171
|
+
allPluginParams: {
|
172
|
+
...a,
|
173
|
+
...t,
|
174
|
+
SeriesLegend: {
|
175
|
+
listRectRadius: 7
|
176
|
+
// 圓型圖例列點
|
177
|
+
}
|
178
|
+
}
|
179
|
+
};
|
180
|
+
g.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
181
|
+
const u = {
|
135
182
|
name: "PRESET_ROSE_SCALING_BY_RADIUS",
|
136
183
|
description: "以半徑尺寸為比例的玫瑰圖",
|
184
|
+
dataFormatter: {
|
185
|
+
sort: (i, e) => e.value - i.value
|
186
|
+
},
|
137
187
|
allPluginParams: {
|
138
188
|
...t,
|
139
189
|
Rose: {
|
@@ -147,61 +197,60 @@ const i = {
|
|
147
197
|
// 圓型圖例列點
|
148
198
|
}
|
149
199
|
}
|
150
|
-
}
|
200
|
+
};
|
201
|
+
u.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
202
|
+
const A = {
|
151
203
|
name: "PRESET_SERIES_BASIC",
|
152
204
|
description: "基本Series參數",
|
153
205
|
allPluginParams: {
|
154
|
-
...
|
206
|
+
...a,
|
155
207
|
...t,
|
156
208
|
SeriesLegend: {
|
157
209
|
listRectRadius: 7
|
158
210
|
// 圓型圖例列點
|
159
211
|
}
|
160
212
|
}
|
161
|
-
},
|
162
|
-
name: "PRESET_SERIES_DESC",
|
163
|
-
description: "資料由大到小排序",
|
164
|
-
dataFormatter: {
|
165
|
-
sort: (a, r) => r.value - a.value
|
166
|
-
},
|
167
|
-
allPluginParams: {
|
168
|
-
...i,
|
169
|
-
...t
|
170
|
-
}
|
171
|
-
};
|
172
|
-
o.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
173
|
-
const R = {
|
213
|
+
}, E = {
|
174
214
|
name: "PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",
|
175
215
|
description: "分開顯示Series並合併Series資料",
|
176
216
|
dataFormatter: {
|
217
|
+
sort: (i, e) => e.value - i.value,
|
177
218
|
separateSeries: !0,
|
178
219
|
sumSeries: !0
|
179
220
|
},
|
180
221
|
allPluginParams: {
|
181
|
-
...
|
222
|
+
...a,
|
182
223
|
...t
|
183
224
|
}
|
184
|
-
}
|
225
|
+
};
|
226
|
+
E.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
227
|
+
const S = {
|
185
228
|
name: "PRESET_SERIES_SEPARATE_SERIES",
|
186
229
|
description: "分開顯示Series",
|
187
230
|
dataFormatter: {
|
231
|
+
sort: (i, e) => e.value - i.value,
|
188
232
|
separateSeries: !0
|
189
233
|
},
|
190
234
|
allPluginParams: {
|
191
|
-
...
|
235
|
+
...a,
|
192
236
|
...t
|
193
237
|
}
|
194
|
-
}
|
238
|
+
};
|
239
|
+
S.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
240
|
+
const R = {
|
195
241
|
name: "PRESET_SERIES_SUM_SERIES",
|
196
242
|
description: "合併Series資料",
|
197
243
|
dataFormatter: {
|
244
|
+
sort: (i, e) => e.value - i.value,
|
198
245
|
sumSeries: !0
|
199
246
|
},
|
200
247
|
allPluginParams: {
|
201
|
-
...
|
248
|
+
...a,
|
202
249
|
...t
|
203
250
|
}
|
204
|
-
}
|
251
|
+
};
|
252
|
+
R.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
253
|
+
const p = {
|
205
254
|
name: "PRESET_BARS_HORIZONTAL_AND_ROUND",
|
206
255
|
description: "橫向圓角長條圖",
|
207
256
|
chartParams: {
|
@@ -247,7 +296,7 @@ const R = {
|
|
247
296
|
listRectRadius: 7
|
248
297
|
}
|
249
298
|
}
|
250
|
-
},
|
299
|
+
}, c = {
|
251
300
|
name: "PRESET_BARS_HORIZONTAL_AND_THIN",
|
252
301
|
description: "橫向細長長條圖",
|
253
302
|
chartParams: {
|
@@ -290,7 +339,7 @@ const R = {
|
|
290
339
|
padding: 14
|
291
340
|
}
|
292
341
|
}
|
293
|
-
},
|
342
|
+
}, m = {
|
294
343
|
name: "PRESET_BARS_ROUND",
|
295
344
|
description: "圓角長條圖",
|
296
345
|
chartParams: {
|
@@ -320,7 +369,7 @@ const R = {
|
|
320
369
|
listRectRadius: 7
|
321
370
|
}
|
322
371
|
}
|
323
|
-
},
|
372
|
+
}, I = {
|
324
373
|
name: "PRESET_BARS_THIN",
|
325
374
|
description: "細長條圖",
|
326
375
|
chartParams: {
|
@@ -347,7 +396,7 @@ const R = {
|
|
347
396
|
padding: 14
|
348
397
|
}
|
349
398
|
}
|
350
|
-
},
|
399
|
+
}, T = {
|
351
400
|
name: "PRESET_GRID_BASIC",
|
352
401
|
description: "基本Grid參數",
|
353
402
|
chartParams: {
|
@@ -359,7 +408,7 @@ const R = {
|
|
359
408
|
}
|
360
409
|
},
|
361
410
|
allPluginParams: {
|
362
|
-
...
|
411
|
+
...r,
|
363
412
|
...t,
|
364
413
|
GridLegend: {
|
365
414
|
position: "bottom",
|
@@ -367,7 +416,7 @@ const R = {
|
|
367
416
|
padding: 14
|
368
417
|
}
|
369
418
|
}
|
370
|
-
},
|
419
|
+
}, L = {
|
371
420
|
name: "PRESET_GRID_HORIZONTAL",
|
372
421
|
description: "橫向圖",
|
373
422
|
chartParams: {
|
@@ -396,7 +445,7 @@ const R = {
|
|
396
445
|
}
|
397
446
|
},
|
398
447
|
allPluginParams: {
|
399
|
-
...
|
448
|
+
...r,
|
400
449
|
...t,
|
401
450
|
GridLegend: {
|
402
451
|
position: "bottom",
|
@@ -404,7 +453,7 @@ const R = {
|
|
404
453
|
padding: 14
|
405
454
|
}
|
406
455
|
}
|
407
|
-
},
|
456
|
+
}, h = {
|
408
457
|
name: "PRESET_GRID_PN_SCALE",
|
409
458
|
description: "正負值分向圖",
|
410
459
|
chartParams: {
|
@@ -424,7 +473,7 @@ const R = {
|
|
424
473
|
}
|
425
474
|
},
|
426
475
|
allPluginParams: {
|
427
|
-
...
|
476
|
+
...r,
|
428
477
|
...t,
|
429
478
|
GridLegend: {
|
430
479
|
position: "bottom",
|
@@ -432,7 +481,7 @@ const R = {
|
|
432
481
|
padding: 14
|
433
482
|
}
|
434
483
|
}
|
435
|
-
},
|
484
|
+
}, x = {
|
436
485
|
name: "PRESET_GRID_ROTATE_AXIS_LABEL",
|
437
486
|
description: "傾斜標籤",
|
438
487
|
chartParams: {
|
@@ -445,7 +494,7 @@ const R = {
|
|
445
494
|
}
|
446
495
|
},
|
447
496
|
allPluginParams: {
|
448
|
-
...
|
497
|
+
...r,
|
449
498
|
...t,
|
450
499
|
GroupAux: {
|
451
500
|
labelRotate: -30
|
@@ -460,7 +509,7 @@ const R = {
|
|
460
509
|
padding: 14
|
461
510
|
}
|
462
511
|
}
|
463
|
-
},
|
512
|
+
}, G = {
|
464
513
|
name: "PRESET_GRID_SEPARATE_SERIES",
|
465
514
|
description: "分開顯示Series",
|
466
515
|
chartParams: {
|
@@ -478,7 +527,7 @@ const R = {
|
|
478
527
|
}
|
479
528
|
},
|
480
529
|
allPluginParams: {
|
481
|
-
...
|
530
|
+
...r,
|
482
531
|
...t,
|
483
532
|
GroupAux: {
|
484
533
|
labelRotate: -30
|
@@ -493,7 +542,7 @@ const R = {
|
|
493
542
|
padding: 14
|
494
543
|
}
|
495
544
|
}
|
496
|
-
},
|
545
|
+
}, b = {
|
497
546
|
name: "PRESET_LINE_AREAS_BASIC",
|
498
547
|
description: "基本LineArea參數",
|
499
548
|
chartParams: {
|
@@ -527,7 +576,7 @@ const R = {
|
|
527
576
|
listRectHeight: 2
|
528
577
|
}
|
529
578
|
}
|
530
|
-
},
|
579
|
+
}, M = {
|
531
580
|
name: "PRESET_LINE_AREAS_CURVE",
|
532
581
|
description: "弧線折線圖",
|
533
582
|
chartParams: {
|
@@ -566,7 +615,7 @@ const R = {
|
|
566
615
|
listRectHeight: 2
|
567
616
|
}
|
568
617
|
}
|
569
|
-
},
|
618
|
+
}, N = {
|
570
619
|
name: "PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS",
|
571
620
|
description: "折線圖及Highlight Group圓點",
|
572
621
|
chartParams: {
|
@@ -642,7 +691,7 @@ const R = {
|
|
642
691
|
listRectHeight: 2
|
643
692
|
}
|
644
693
|
}
|
645
|
-
},
|
694
|
+
}, B = {
|
646
695
|
name: "PRESET_LINE_AREAS_LOOSE_TICKS",
|
647
696
|
description: "寬鬆標籤",
|
648
697
|
chartParams: {
|
@@ -717,7 +766,7 @@ const R = {
|
|
717
766
|
listRectHeight: 2
|
718
767
|
}
|
719
768
|
}
|
720
|
-
},
|
769
|
+
}, H = {
|
721
770
|
name: "PRESET_LINE_AREAS_SEPARATE_SERIES",
|
722
771
|
description: "LineAreas 分開顯示Series",
|
723
772
|
chartParams: {
|
@@ -758,7 +807,7 @@ const R = {
|
|
758
807
|
listRectHeight: 2
|
759
808
|
}
|
760
809
|
}
|
761
|
-
},
|
810
|
+
}, O = {
|
762
811
|
name: "PRESET_LINES_BASIC",
|
763
812
|
description: "基本Lines參數",
|
764
813
|
chartParams: {
|
@@ -784,7 +833,7 @@ const R = {
|
|
784
833
|
listRectHeight: 2
|
785
834
|
}
|
786
835
|
}
|
787
|
-
},
|
836
|
+
}, v = {
|
788
837
|
name: "PRESET_LINES_CURVE",
|
789
838
|
description: "弧線折線圖",
|
790
839
|
chartParams: {
|
@@ -911,7 +960,7 @@ const R = {
|
|
911
960
|
listRectHeight: 2
|
912
961
|
}
|
913
962
|
}
|
914
|
-
},
|
963
|
+
}, F = {
|
915
964
|
name: "PRESET_LINES_ROTATE_AXIS_LABEL",
|
916
965
|
description: "傾斜標籤",
|
917
966
|
chartParams: {
|
@@ -942,7 +991,7 @@ const R = {
|
|
942
991
|
listRectHeight: 2
|
943
992
|
}
|
944
993
|
}
|
945
|
-
},
|
994
|
+
}, C = {
|
946
995
|
name: "PRESET_LINES_WITH_SOLID_DOTS",
|
947
996
|
description: "折線圖及實心圓點",
|
948
997
|
chartParams: {
|
@@ -972,7 +1021,7 @@ const R = {
|
|
972
1021
|
listRectHeight: 2
|
973
1022
|
}
|
974
1023
|
}
|
975
|
-
},
|
1024
|
+
}, k = {
|
976
1025
|
name: "PRESET_MULTI_GRID_BASIC",
|
977
1026
|
description: "基本MultiGrid參數",
|
978
1027
|
chartParams: {
|
@@ -999,7 +1048,7 @@ const R = {
|
|
999
1048
|
]
|
1000
1049
|
}
|
1001
1050
|
}
|
1002
|
-
},
|
1051
|
+
}, j = {
|
1003
1052
|
name: "PRESET_MULTI_GRID_DIVERGING",
|
1004
1053
|
description: "雙向折線圖",
|
1005
1054
|
chartParams: {
|
@@ -1078,7 +1127,7 @@ const R = {
|
|
1078
1127
|
padding: 14
|
1079
1128
|
}
|
1080
1129
|
}
|
1081
|
-
},
|
1130
|
+
}, W = {
|
1082
1131
|
name: "PRESET_MULTI_GRID_ROUND_STYLE",
|
1083
1132
|
description: "MultiGrid圓弧風格",
|
1084
1133
|
chartParams: {
|
@@ -1124,7 +1173,7 @@ const R = {
|
|
1124
1173
|
OverlappingValueAxes: {},
|
1125
1174
|
OverlappingValueStackAxes: {}
|
1126
1175
|
}
|
1127
|
-
},
|
1176
|
+
}, X = {
|
1128
1177
|
name: "PRESET_MULTI_GRID_SEPARATE_GRID",
|
1129
1178
|
description: "2組Grid圖表",
|
1130
1179
|
chartParams: {
|
@@ -1174,7 +1223,7 @@ const R = {
|
|
1174
1223
|
padding: 14
|
1175
1224
|
}
|
1176
1225
|
}
|
1177
|
-
},
|
1226
|
+
}, Z = {
|
1178
1227
|
name: "PRESET_MULTI_LINE_AREAS_SEPARATE_GRID",
|
1179
1228
|
description: "2組區域圖表",
|
1180
1229
|
chartParams: {
|
@@ -1268,7 +1317,7 @@ const R = {
|
|
1268
1317
|
]
|
1269
1318
|
}
|
1270
1319
|
}
|
1271
|
-
},
|
1320
|
+
}, Y = {
|
1272
1321
|
name: "PRESET_MULTI_LINES_SEPARATE_GRID",
|
1273
1322
|
description: "多組分開折線圖表",
|
1274
1323
|
chartParams: {
|
@@ -1344,7 +1393,7 @@ const R = {
|
|
1344
1393
|
]
|
1345
1394
|
}
|
1346
1395
|
}
|
1347
|
-
},
|
1396
|
+
}, w = {
|
1348
1397
|
name: "PRESET_TREE_BASIC",
|
1349
1398
|
description: "基本Tree參數",
|
1350
1399
|
chartParams: {
|
@@ -1366,45 +1415,46 @@ const R = {
|
|
1366
1415
|
}
|
1367
1416
|
};
|
1368
1417
|
export {
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1418
|
+
p as PRESET_BARS_HORIZONTAL_AND_ROUND,
|
1419
|
+
c as PRESET_BARS_HORIZONTAL_AND_THIN,
|
1420
|
+
m as PRESET_BARS_ROUND,
|
1421
|
+
I as PRESET_BARS_THIN,
|
1422
|
+
_ as PRESET_BUBBLES_SCALING_BY_RADIUS,
|
1423
|
+
P as PRESET_BUBBLES_SEPARATE_SERIES,
|
1424
|
+
T as PRESET_GRID_BASIC,
|
1425
|
+
L as PRESET_GRID_HORIZONTAL,
|
1426
|
+
h as PRESET_GRID_PN_SCALE,
|
1427
|
+
x as PRESET_GRID_ROTATE_AXIS_LABEL,
|
1428
|
+
G as PRESET_GRID_SEPARATE_SERIES,
|
1429
|
+
O as PRESET_LINES_BASIC,
|
1430
|
+
v as PRESET_LINES_CURVE,
|
1382
1431
|
U as PRESET_LINES_HIGHLIGHT_GROUP_DOTS,
|
1383
1432
|
V as PRESET_LINES_HORIZONTAL,
|
1384
1433
|
y as PRESET_LINES_LOOSE_TICKS,
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1434
|
+
F as PRESET_LINES_ROTATE_AXIS_LABEL,
|
1435
|
+
C as PRESET_LINES_WITH_SOLID_DOTS,
|
1436
|
+
b as PRESET_LINE_AREAS_BASIC,
|
1437
|
+
M as PRESET_LINE_AREAS_CURVE,
|
1438
|
+
N as PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS,
|
1390
1439
|
D as PRESET_LINE_AREAS_HORIZONTAL,
|
1391
|
-
|
1440
|
+
B as PRESET_LINE_AREAS_LOOSE_TICKS,
|
1392
1441
|
f as PRESET_LINE_AREAS_ROTATE_AXIS_LABEL,
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1442
|
+
H as PRESET_LINE_AREAS_SEPARATE_SERIES,
|
1443
|
+
k as PRESET_MULTI_GRID_BASIC,
|
1444
|
+
j as PRESET_MULTI_GRID_DIVERGING,
|
1445
|
+
W as PRESET_MULTI_GRID_ROUND_STYLE,
|
1446
|
+
X as PRESET_MULTI_GRID_SEPARATE_GRID,
|
1447
|
+
Y as PRESET_MULTI_LINES_SEPARATE_GRID,
|
1448
|
+
Z as PRESET_MULTI_LINE_AREAS_SEPARATE_GRID,
|
1449
|
+
o as PRESET_PIE_BASIC,
|
1450
|
+
n as PRESET_PIE_DONUT,
|
1451
|
+
l as PRESET_PIE_HALF_DONUT,
|
1452
|
+
d as PRESET_PIE_WITH_INNER_LABELS,
|
1453
|
+
g as PRESET_ROSE_BASIC,
|
1403
1454
|
u as PRESET_ROSE_SCALING_BY_RADIUS,
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
R as
|
1408
|
-
|
1409
|
-
Y as PRESET_TREE_BASIC
|
1455
|
+
A as PRESET_SERIES_BASIC,
|
1456
|
+
S as PRESET_SERIES_SEPARATE_SERIES,
|
1457
|
+
E as PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES,
|
1458
|
+
R as PRESET_SERIES_SUM_SERIES,
|
1459
|
+
w as PRESET_TREE_BASIC
|
1410
1460
|
};
|
@@ -1 +1 @@
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i["orbcharts-presets-basic"]={}))})(this,function(i){"use strict";const e={Bubbles:{},Pie:{},PieEventTexts:{},PieLabels:{},Rose:{},RoseLabels:{},SeriesLegend:{}},a={Bars:{},BarsPN:{},BarStack:{},BarsTriangle:{},Dots:{},GridLegend:{},GroupAux:{},GroupAxis:{},LineAreas:{},Lines:{},ScalingArea:{},ValueAxis:{},ValueStackAxis:{}},r={MultiBars:{},MultiBarStack:{},MultiBarsTriangle:{},MultiDots:{},MultiGridLegend:{},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}},t={Tooltip:{}},E={name:"PRESET_BUBBLES_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的泡泡圖",allPluginParams:{...t,Bubbles:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},n={name:"PRESET_BUBBLES_SEPARATE_SERIES",description:"分開顯示Series泡泡",chartParams:{padding:{top:160,right:160,bottom:160,left:160}},dataFormatter:{separateSeries:!0},allPluginParams:{...t,Bubbles:{},SeriesLegend:{listRectRadius:7}}},o={name:"PRESET_PIE_DONUT",description:"甜甜圈圖",allPluginParams:{...t,Pie:{innerRadius:.5},PieLabels:{},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},l={name:"PRESET_PIE_HALF_DONUT",description:"半圓甜甜圈圖",chartParams:{padding:{top:120,right:120,bottom:0,left:60}},allPluginParams:{...t,Pie:{innerRadius:.5,startAngle:-Math.PI/2,endAngle:Math.PI/2},PieLabels:{startAngle:-Math.PI/2,endAngle:Math.PI/2},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},d={name:"PRESET_PIE_WITH_INNER_LABELS",description:"圓餅圖及內部資料標籤",allPluginParams:{...t,Pie:{},PieLabels:{labelCentroid:1.3,labelColorType:"primary"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},S={name:"PRESET_ROSE_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的玫瑰圖",allPluginParams:{...t,Rose:{arcScaleType:"radius"},RoseLabels:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},_={name:"PRESET_SERIES_BASIC",description:"基本Series參數",allPluginParams:{...e,...t,SeriesLegend:{listRectRadius:7}}},s={name:"PRESET_SERIES_DESC",description:"資料由大到小排序",dataFormatter:{sort:(Y,K)=>K.value-Y.value},allPluginParams:{...e,...t}};s.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const R={name:"PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",description:"分開顯示Series並合併Series資料",dataFormatter:{separateSeries:!0,sumSeries:!0},allPluginParams:{...e,...t}},g={name:"PRESET_SERIES_SEPARATE_SERIES",description:"分開顯示Series",dataFormatter:{separateSeries:!0},allPluginParams:{...e,...t}},A={name:"PRESET_SERIES_SUM_SERIES",description:"合併Series資料",dataFormatter:{sumSeries:!0},allPluginParams:{...e,...t}},u={name:"PRESET_BARS_HORIZONTAL_AND_ROUND",description:"橫向圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectRadius:7}}},P={name:"PRESET_BARS_HORIZONTAL_AND_THIN",description:"橫向細長長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14}}},I={name:"PRESET_BARS_ROUND",description:"圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...t,Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectRadius:7}}},T={name:"PRESET_BARS_THIN",description:"細長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...t,Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14}}},c={name:"PRESET_GRID_BASIC",description:"基本Grid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},p={name:"PRESET_GRID_HORIZONTAL",description:"橫向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},L={name:"PRESET_GRID_PN_SCALE",description:"正負值分向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{grid:{valueAxis:{scaleDomain:["auto","auto"],scaleRange:[.05,.95]}}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},m={name:"PRESET_GRID_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},allPluginParams:{...a,...t,GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14}}},h={name:"PRESET_GRID_SEPARATE_SERIES",description:"分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{grid:{separateSeries:!0}},allPluginParams:{...a,...t,GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14}}},G={name:"PRESET_LINE_AREAS_BASIC",description:"基本LineArea參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},N={name:"PRESET_LINE_AREAS_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{lineCurve:"curveMonotoneX",lineWidth:3},LineAreas:{lineCurve:"curveMonotoneX"},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},x={name:"PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS",description:"折線圖及Highlight Group圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"group"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{lineWidth:3},LineAreas:{},Dots:{onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},b={name:"PRESET_LINE_AREAS_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left",scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},D={name:"PRESET_LINE_AREAS_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},M={name:"PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},B={name:"PRESET_LINE_AREAS_SEPARATE_SERIES",description:"LineAreas 分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{separateSeries:!0,groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},O={name:"PRESET_LINES_BASIC",description:"基本Lines參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},H={name:"PRESET_LINES_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{lineCurve:"curveMonotoneX",lineWidth:3},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},f={name:"PRESET_LINES_HIGHLIGHT_GROUP_DOTS",description:"折線圖及Highlight Group圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"group"},allPluginParams:{...t,Lines:{},Dots:{onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},U={name:"PRESET_LINES_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},C={name:"PRESET_LINES_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},V={name:"PRESET_LINES_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},y={name:"PRESET_LINES_WITH_SOLID_DOTS",description:"折線圖及實心圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{radius:3,fillColorType:"series",onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},j={name:"PRESET_MULTI_GRID_BASIC",description:"基本MultiGrid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...r,...t,MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{},{listRectHeight:2}]}}},k={name:"PRESET_MULTI_GRID_DIVERGING",description:"雙向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{gridList:[{groupAxis:{position:"right"},valueAxis:{position:"bottom"}},{groupAxis:{position:"left"},valueAxis:{position:"bottom"}}],container:{gap:200,rowAmount:1,columnAmount:2},separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickPadding:60,gridIndexes:[0]},MultiValueAxis:{gridIndexes:[0,1]},MultiValueStackAxis:{gridIndexes:[0,1]},MultiBars:{gridIndexes:[0,1]},MultiBarStack:{gridIndexes:[0,1]},MultiBarsTriangle:{gridIndexes:[0,1]},MultiLines:{gridIndexes:[0,1]},MultiLineAreas:{gridIndexes:[0,1]},MultiDots:{gridIndexes:[0,1]},MultiGridLegend:{position:"bottom",justify:"center",padding:14}}},v={name:"PRESET_MULTI_GRID_ROUND_STYLE",description:"MultiGrid圓弧風格",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,MultiBars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},MultiBarStack:{},MultiDots:{},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectRadius:7},{listRectHeight:2}]},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{lineCurve:"curveMonotoneX",lineWidth:3},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}}},F={name:"PRESET_MULTI_GRID_SEPARATE_GRID",description:"2組Grid圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14}}},W={name:"PRESET_MULTI_LINE_AREAS_SEPARATE_GRID",description:"2組區域圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{gridList:[{groupAxis:{scalePadding:0}},{groupAxis:{scalePadding:0}}],separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},Z={name:"PRESET_MULTI_LINES_SEPARATE_GRID",description:"多組分開折線圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},X={name:"PRESET_TREE_BASIC",description:"基本Tree參數",chartParams:{padding:{top:40,right:40,bottom:60,left:40}},allPluginParams:{...t,TreeMap:{},TreeLegend:{position:"bottom",justify:"center",padding:14}}};i.PRESET_BARS_HORIZONTAL_AND_ROUND=u,i.PRESET_BARS_HORIZONTAL_AND_THIN=P,i.PRESET_BARS_ROUND=I,i.PRESET_BARS_THIN=T,i.PRESET_BUBBLES_SCALING_BY_RADIUS=E,i.PRESET_BUBBLES_SEPARATE_SERIES=n,i.PRESET_GRID_BASIC=c,i.PRESET_GRID_HORIZONTAL=p,i.PRESET_GRID_PN_SCALE=L,i.PRESET_GRID_ROTATE_AXIS_LABEL=m,i.PRESET_GRID_SEPARATE_SERIES=h,i.PRESET_LINES_BASIC=O,i.PRESET_LINES_CURVE=H,i.PRESET_LINES_HIGHLIGHT_GROUP_DOTS=f,i.PRESET_LINES_HORIZONTAL=U,i.PRESET_LINES_LOOSE_TICKS=C,i.PRESET_LINES_ROTATE_AXIS_LABEL=V,i.PRESET_LINES_WITH_SOLID_DOTS=y,i.PRESET_LINE_AREAS_BASIC=G,i.PRESET_LINE_AREAS_CURVE=N,i.PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS=x,i.PRESET_LINE_AREAS_HORIZONTAL=b,i.PRESET_LINE_AREAS_LOOSE_TICKS=D,i.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=M,i.PRESET_LINE_AREAS_SEPARATE_SERIES=B,i.PRESET_MULTI_GRID_BASIC=j,i.PRESET_MULTI_GRID_DIVERGING=k,i.PRESET_MULTI_GRID_ROUND_STYLE=v,i.PRESET_MULTI_GRID_SEPARATE_GRID=F,i.PRESET_MULTI_LINES_SEPARATE_GRID=Z,i.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=W,i.PRESET_PIE_DONUT=o,i.PRESET_PIE_HALF_DONUT=l,i.PRESET_PIE_WITH_INNER_LABELS=d,i.PRESET_ROSE_SCALING_BY_RADIUS=S,i.PRESET_SERIES_BASIC=_,i.PRESET_SERIES_DESC=s,i.PRESET_SERIES_SEPARATE_SERIES=g,i.PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES=R,i.PRESET_SERIES_SUM_SERIES=A,i.PRESET_TREE_BASIC=X,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
1
|
+
(function(t,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(t=typeof globalThis<"u"?globalThis:t||self,r(t["orbcharts-presets-basic"]={}))})(this,function(t){"use strict";const r={Bubbles:{},Pie:{},PieEventTexts:{},PieLabels:{},Rose:{},RoseLabels:{},SeriesLegend:{}},s={Bars:{},BarsPN:{},BarStack:{},BarsTriangle:{},Dots:{},GridLegend:{},GroupAux:{},GroupAxis:{},LineAreas:{},Lines:{},ScalingArea:{},ValueAxis:{},ValueStackAxis:{}},u={MultiBars:{},MultiBarStack:{},MultiBarsTriangle:{},MultiDots:{},MultiGridLegend:{},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}},i={Tooltip:{}},A={name:"PRESET_BUBBLES_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的泡泡圖",allPluginParams:{...i,Bubbles:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},P={name:"PRESET_BUBBLES_SEPARATE_SERIES",description:"分開顯示Series泡泡",chartParams:{padding:{top:160,right:160,bottom:160,left:160}},dataFormatter:{separateSeries:!0},allPluginParams:{...i,Bubbles:{},SeriesLegend:{listRectRadius:7}}},o={name:"PRESET_PIE_BASIC",description:"基本Pie參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{...r,...i,SeriesLegend:{listRectRadius:7}}};o.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const n={name:"PRESET_PIE_DONUT",description:"甜甜圈圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{...i,Pie:{innerRadius:.5},PieLabels:{},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};n.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const E={name:"PRESET_PIE_HALF_DONUT",description:"半圓甜甜圈圖",chartParams:{padding:{top:120,right:120,bottom:0,left:60}},dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{...i,Pie:{innerRadius:.5,startAngle:-Math.PI/2,endAngle:Math.PI/2},PieLabels:{startAngle:-Math.PI/2,endAngle:Math.PI/2},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};E.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const l={name:"PRESET_PIE_WITH_INNER_LABELS",description:"圓餅圖及內部資料標籤",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{...i,Pie:{},PieLabels:{labelCentroid:1.3,labelColorType:"primary"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};l.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const d={name:"PRESET_ROSE_BASIC",description:"基本Rose參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{...r,...i,SeriesLegend:{listRectRadius:7}}};d.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const S={name:"PRESET_ROSE_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的玫瑰圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{...i,Rose:{arcScaleType:"radius"},RoseLabels:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}};S.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const I={name:"PRESET_SERIES_BASIC",description:"基本Series參數",allPluginParams:{...r,...i,SeriesLegend:{listRectRadius:7}}},_={name:"PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",description:"分開顯示Series並合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0,sumSeries:!0},allPluginParams:{...r,...i}};_.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const R={name:"PRESET_SERIES_SEPARATE_SERIES",description:"分開顯示Series",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0},allPluginParams:{...r,...i}};R.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const g={name:"PRESET_SERIES_SUM_SERIES",description:"合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,sumSeries:!0},allPluginParams:{...r,...i}};g.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const T={name:"PRESET_BARS_HORIZONTAL_AND_ROUND",description:"橫向圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...i,Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectRadius:7}}},c={name:"PRESET_BARS_HORIZONTAL_AND_THIN",description:"橫向細長長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...i,Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14}}},L={name:"PRESET_BARS_ROUND",description:"圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...i,Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectRadius:7}}},p={name:"PRESET_BARS_THIN",description:"細長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...i,Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14}}},m={name:"PRESET_GRID_BASIC",description:"基本Grid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...s,...i,GridLegend:{position:"bottom",justify:"center",padding:14}}},h={name:"PRESET_GRID_HORIZONTAL",description:"橫向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...s,...i,GridLegend:{position:"bottom",justify:"center",padding:14}}},G={name:"PRESET_GRID_PN_SCALE",description:"正負值分向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{grid:{valueAxis:{scaleDomain:["auto","auto"],scaleRange:[.05,.95]}}},allPluginParams:{...s,...i,GridLegend:{position:"bottom",justify:"center",padding:14}}},b={name:"PRESET_GRID_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},allPluginParams:{...s,...i,GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14}}},N={name:"PRESET_GRID_SEPARATE_SERIES",description:"分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{grid:{separateSeries:!0}},allPluginParams:{...s,...i,GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14}}},x={name:"PRESET_LINE_AREAS_BASIC",description:"基本LineArea參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...i,Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},D={name:"PRESET_LINE_AREAS_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...i,Lines:{lineCurve:"curveMonotoneX",lineWidth:3},LineAreas:{lineCurve:"curveMonotoneX"},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},M={name:"PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS",description:"折線圖及Highlight Group圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"group"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...i,Lines:{lineWidth:3},LineAreas:{},Dots:{onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},B={name:"PRESET_LINE_AREAS_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left",scalePadding:0}}},allPluginParams:{...i,Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},O={name:"PRESET_LINE_AREAS_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...i,Lines:{},LineAreas:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},H={name:"PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...i,Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},f={name:"PRESET_LINE_AREAS_SEPARATE_SERIES",description:"LineAreas 分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{separateSeries:!0,groupAxis:{scalePadding:0}}},allPluginParams:{...i,Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},U={name:"PRESET_LINES_BASIC",description:"基本Lines參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...i,Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},v={name:"PRESET_LINES_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...i,Lines:{lineCurve:"curveMonotoneX",lineWidth:3},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},C={name:"PRESET_LINES_HIGHLIGHT_GROUP_DOTS",description:"折線圖及Highlight Group圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"group"},allPluginParams:{...i,Lines:{},Dots:{onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},V={name:"PRESET_LINES_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...i,Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},y={name:"PRESET_LINES_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...i,Lines:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},F={name:"PRESET_LINES_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},allPluginParams:{...i,Lines:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},j={name:"PRESET_LINES_WITH_SOLID_DOTS",description:"折線圖及實心圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...i,Lines:{},Dots:{radius:3,fillColorType:"series",onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},k={name:"PRESET_MULTI_GRID_BASIC",description:"基本MultiGrid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...u,...i,MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{},{listRectHeight:2}]}}},W={name:"PRESET_MULTI_GRID_DIVERGING",description:"雙向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{gridList:[{groupAxis:{position:"right"},valueAxis:{position:"bottom"}},{groupAxis:{position:"left"},valueAxis:{position:"bottom"}}],container:{gap:200,rowAmount:1,columnAmount:2},separateGrid:!0},allPluginParams:{...i,MultiGroupAxis:{tickPadding:60,gridIndexes:[0]},MultiValueAxis:{gridIndexes:[0,1]},MultiValueStackAxis:{gridIndexes:[0,1]},MultiBars:{gridIndexes:[0,1]},MultiBarStack:{gridIndexes:[0,1]},MultiBarsTriangle:{gridIndexes:[0,1]},MultiLines:{gridIndexes:[0,1]},MultiLineAreas:{gridIndexes:[0,1]},MultiDots:{gridIndexes:[0,1]},MultiGridLegend:{position:"bottom",justify:"center",padding:14}}},Z={name:"PRESET_MULTI_GRID_ROUND_STYLE",description:"MultiGrid圓弧風格",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...i,MultiBars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},MultiBarStack:{},MultiDots:{},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectRadius:7},{listRectHeight:2}]},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{lineCurve:"curveMonotoneX",lineWidth:3},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}}},X={name:"PRESET_MULTI_GRID_SEPARATE_GRID",description:"2組Grid圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...i,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14}}},Y={name:"PRESET_MULTI_LINE_AREAS_SEPARATE_GRID",description:"2組區域圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{gridList:[{groupAxis:{scalePadding:0}},{groupAxis:{scalePadding:0}}],separateGrid:!0},allPluginParams:{...i,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},K={name:"PRESET_MULTI_LINES_SEPARATE_GRID",description:"多組分開折線圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...i,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},w={name:"PRESET_TREE_BASIC",description:"基本Tree參數",chartParams:{padding:{top:40,right:40,bottom:60,left:40}},allPluginParams:{...i,TreeMap:{},TreeLegend:{position:"bottom",justify:"center",padding:14}}};t.PRESET_BARS_HORIZONTAL_AND_ROUND=T,t.PRESET_BARS_HORIZONTAL_AND_THIN=c,t.PRESET_BARS_ROUND=L,t.PRESET_BARS_THIN=p,t.PRESET_BUBBLES_SCALING_BY_RADIUS=A,t.PRESET_BUBBLES_SEPARATE_SERIES=P,t.PRESET_GRID_BASIC=m,t.PRESET_GRID_HORIZONTAL=h,t.PRESET_GRID_PN_SCALE=G,t.PRESET_GRID_ROTATE_AXIS_LABEL=b,t.PRESET_GRID_SEPARATE_SERIES=N,t.PRESET_LINES_BASIC=U,t.PRESET_LINES_CURVE=v,t.PRESET_LINES_HIGHLIGHT_GROUP_DOTS=C,t.PRESET_LINES_HORIZONTAL=V,t.PRESET_LINES_LOOSE_TICKS=y,t.PRESET_LINES_ROTATE_AXIS_LABEL=F,t.PRESET_LINES_WITH_SOLID_DOTS=j,t.PRESET_LINE_AREAS_BASIC=x,t.PRESET_LINE_AREAS_CURVE=D,t.PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS=M,t.PRESET_LINE_AREAS_HORIZONTAL=B,t.PRESET_LINE_AREAS_LOOSE_TICKS=O,t.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=H,t.PRESET_LINE_AREAS_SEPARATE_SERIES=f,t.PRESET_MULTI_GRID_BASIC=k,t.PRESET_MULTI_GRID_DIVERGING=W,t.PRESET_MULTI_GRID_ROUND_STYLE=Z,t.PRESET_MULTI_GRID_SEPARATE_GRID=X,t.PRESET_MULTI_LINES_SEPARATE_GRID=K,t.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=Y,t.PRESET_PIE_BASIC=o,t.PRESET_PIE_DONUT=n,t.PRESET_PIE_HALF_DONUT=E,t.PRESET_PIE_WITH_INNER_LABELS=l,t.PRESET_ROSE_BASIC=d,t.PRESET_ROSE_SCALING_BY_RADIUS=S,t.PRESET_SERIES_BASIC=I,t.PRESET_SERIES_SEPARATE_SERIES=R,t.PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES=_,t.PRESET_SERIES_SUM_SERIES=g,t.PRESET_TREE_BASIC=w,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { PresetPartial } from '@orbcharts/core';
|
2
2
|
import { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
3
|
|
4
|
-
export declare const
|
4
|
+
export declare const PRESET_PIE_BASIC: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams>;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
export { PRESET_BUBBLES_SCALING_BY_RADIUS } from './PRESET_BUBBLES_SCALING_BY_RADIUS';
|
2
2
|
export { PRESET_BUBBLES_SEPARATE_SERIES } from './PRESET_BUBBLES_SEPARATE_SERIES';
|
3
|
+
export { PRESET_PIE_BASIC } from './PRESET_PIE_BASIC';
|
3
4
|
export { PRESET_PIE_DONUT } from './PRESET_PIE_DONUT';
|
4
5
|
export { PRESET_PIE_HALF_DONUT } from './PRESET_PIE_HALF_DONUT';
|
5
6
|
export { PRESET_PIE_WITH_INNER_LABELS } from './PRESET_PIE_WITH_INNER_LABELS';
|
7
|
+
export { PRESET_ROSE_BASIC } from './PRESET_ROSE_BASIC';
|
6
8
|
export { PRESET_ROSE_SCALING_BY_RADIUS } from './PRESET_ROSE_SCALING_BY_RADIUS';
|
7
9
|
export { PRESET_SERIES_BASIC } from './PRESET_SERIES_BASIC';
|
8
|
-
export { PRESET_SERIES_DESC } from './PRESET_SERIES_DESC';
|
9
10
|
export { PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES } from './PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES';
|
10
11
|
export { PRESET_SERIES_SEPARATE_SERIES } from './PRESET_SERIES_SEPARATE_SERIES';
|
11
12
|
export { PRESET_SERIES_SUM_SERIES } from './PRESET_SERIES_SUM_SERIES';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orbcharts/presets-basic",
|
3
|
-
"version": "3.0.0-alpha.
|
3
|
+
"version": "3.0.0-alpha.36",
|
4
4
|
"description": "presets for OrbCharts",
|
5
5
|
"author": "Blue Planet Inc.",
|
6
6
|
"license": "Apache-2.0",
|
@@ -35,8 +35,8 @@
|
|
35
35
|
"vite-plugin-dts": "^3.7.3"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@orbcharts/core": "^3.0.0-alpha.
|
39
|
-
"@orbcharts/plugins-basic": "^3.0.0-alpha.
|
38
|
+
"@orbcharts/core": "^3.0.0-alpha.59",
|
39
|
+
"@orbcharts/plugins-basic": "^3.0.0-alpha.65",
|
40
40
|
"d3": "^7.8.5",
|
41
41
|
"rxjs": "^7.8.1"
|
42
42
|
}
|
@@ -2,15 +2,18 @@ import type { PresetPartial } from '@orbcharts/core'
|
|
2
2
|
import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
3
|
import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
4
|
|
5
|
-
export const
|
6
|
-
name: '
|
7
|
-
description: '
|
5
|
+
export const PRESET_PIE_BASIC: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
|
6
|
+
name: 'PRESET_PIE_BASIC',
|
7
|
+
description: '基本Pie參數',
|
8
8
|
dataFormatter: {
|
9
9
|
sort: (a, b) => b.value - a.value
|
10
10
|
},
|
11
11
|
allPluginParams: {
|
12
12
|
...ALL_PLUGIN_PARAMS_SERIES,
|
13
13
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
14
|
+
SeriesLegend: {
|
15
|
+
listRectRadius: 7 // 圓型圖例列點
|
16
|
+
}
|
14
17
|
}
|
15
18
|
}
|
16
|
-
|
19
|
+
PRESET_PIE_BASIC.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -9,6 +9,9 @@ export const PRESET_PIE_DONUT: PresetPartial<'series', PresetPieParams
|
|
9
9
|
& PresetNoneDataPluginParams> = {
|
10
10
|
name: 'PRESET_PIE_DONUT',
|
11
11
|
description: '甜甜圈圖',
|
12
|
+
dataFormatter: {
|
13
|
+
sort: (a, b) => b.value - a.value
|
14
|
+
},
|
12
15
|
allPluginParams: {
|
13
16
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
14
17
|
Pie: {
|
@@ -21,3 +24,4 @@ export const PRESET_PIE_DONUT: PresetPartial<'series', PresetPieParams
|
|
21
24
|
}
|
22
25
|
}
|
23
26
|
}
|
27
|
+
PRESET_PIE_DONUT.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -17,6 +17,9 @@ export const PRESET_PIE_HALF_DONUT: PresetPartial<'series', PresetPieParams
|
|
17
17
|
left: 60
|
18
18
|
},
|
19
19
|
},
|
20
|
+
dataFormatter: {
|
21
|
+
sort: (a, b) => b.value - a.value
|
22
|
+
},
|
20
23
|
allPluginParams: {
|
21
24
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
22
25
|
Pie: {
|
@@ -34,3 +37,4 @@ export const PRESET_PIE_HALF_DONUT: PresetPartial<'series', PresetPieParams
|
|
34
37
|
}
|
35
38
|
}
|
36
39
|
}
|
40
|
+
PRESET_PIE_HALF_DONUT.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -9,6 +9,9 @@ export const PRESET_PIE_WITH_INNER_LABELS: PresetPartial<'series', PresetPiePara
|
|
9
9
|
& PresetNoneDataPluginParams> = {
|
10
10
|
name: 'PRESET_PIE_WITH_INNER_LABELS',
|
11
11
|
description: '圓餅圖及內部資料標籤',
|
12
|
+
dataFormatter: {
|
13
|
+
sort: (a, b) => b.value - a.value
|
14
|
+
},
|
12
15
|
allPluginParams: {
|
13
16
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
14
17
|
Pie: {},
|
@@ -22,3 +25,4 @@ export const PRESET_PIE_WITH_INNER_LABELS: PresetPartial<'series', PresetPiePara
|
|
22
25
|
}
|
23
26
|
}
|
24
27
|
}
|
28
|
+
PRESET_PIE_WITH_INNER_LABELS.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { PresetPartial } from '@orbcharts/core'
|
2
|
+
import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
|
+
|
5
|
+
export const PRESET_ROSE_BASIC: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
|
6
|
+
name: 'PRESET_ROSE_BASIC',
|
7
|
+
description: '基本Rose參數',
|
8
|
+
dataFormatter: {
|
9
|
+
sort: (a, b) => b.value - a.value
|
10
|
+
},
|
11
|
+
allPluginParams: {
|
12
|
+
...ALL_PLUGIN_PARAMS_SERIES,
|
13
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
14
|
+
SeriesLegend: {
|
15
|
+
listRectRadius: 7 // 圓型圖例列點
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
PRESET_ROSE_BASIC.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -8,6 +8,9 @@ export const PRESET_ROSE_SCALING_BY_RADIUS: PresetPartial<'series', PresetRosePa
|
|
8
8
|
& PresetNoneDataPluginParams> = {
|
9
9
|
name: 'PRESET_ROSE_SCALING_BY_RADIUS',
|
10
10
|
description: '以半徑尺寸為比例的玫瑰圖',
|
11
|
+
dataFormatter: {
|
12
|
+
sort: (a, b) => b.value - a.value
|
13
|
+
},
|
11
14
|
allPluginParams: {
|
12
15
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
13
16
|
Rose: {
|
@@ -21,3 +24,4 @@ export const PRESET_ROSE_SCALING_BY_RADIUS: PresetPartial<'series', PresetRosePa
|
|
21
24
|
}
|
22
25
|
}
|
23
26
|
}
|
27
|
+
PRESET_ROSE_SCALING_BY_RADIUS.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -6,6 +6,7 @@ export const PRESET_SERIES_SEPARATE_SERIES: PresetPartial<'series', PresetSeries
|
|
6
6
|
name: 'PRESET_SERIES_SEPARATE_SERIES',
|
7
7
|
description: '分開顯示Series',
|
8
8
|
dataFormatter: {
|
9
|
+
sort: (a, b) => b.value - a.value,
|
9
10
|
separateSeries: true,
|
10
11
|
},
|
11
12
|
allPluginParams: {
|
@@ -13,3 +14,4 @@ export const PRESET_SERIES_SEPARATE_SERIES: PresetPartial<'series', PresetSeries
|
|
13
14
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
14
15
|
}
|
15
16
|
}
|
17
|
+
PRESET_SERIES_SEPARATE_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -6,6 +6,7 @@ export const PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES: PresetPartial<'series
|
|
6
6
|
name: 'PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES',
|
7
7
|
description: '分開顯示Series並合併Series資料',
|
8
8
|
dataFormatter: {
|
9
|
+
sort: (a, b) => b.value - a.value,
|
9
10
|
separateSeries: true,
|
10
11
|
sumSeries: true,
|
11
12
|
},
|
@@ -14,3 +15,4 @@ export const PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES: PresetPartial<'series
|
|
14
15
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
15
16
|
}
|
16
17
|
}
|
18
|
+
PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -6,6 +6,7 @@ export const PRESET_SERIES_SUM_SERIES: PresetPartial<'series', PresetSeriesPlugi
|
|
6
6
|
name: 'PRESET_SERIES_SUM_SERIES',
|
7
7
|
description: '合併Series資料',
|
8
8
|
dataFormatter: {
|
9
|
+
sort: (a, b) => b.value - a.value,
|
9
10
|
sumSeries: true
|
10
11
|
},
|
11
12
|
allPluginParams: {
|
@@ -13,3 +14,4 @@ export const PRESET_SERIES_SUM_SERIES: PresetPartial<'series', PresetSeriesPlugi
|
|
13
14
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
14
15
|
}
|
15
16
|
}
|
17
|
+
PRESET_SERIES_SUM_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
package/src/series/index.ts
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
export { PRESET_BUBBLES_SCALING_BY_RADIUS } from './PRESET_BUBBLES_SCALING_BY_RADIUS'
|
2
2
|
export { PRESET_BUBBLES_SEPARATE_SERIES } from './PRESET_BUBBLES_SEPARATE_SERIES'
|
3
|
+
export { PRESET_PIE_BASIC } from './PRESET_PIE_BASIC'
|
3
4
|
export { PRESET_PIE_DONUT } from './PRESET_PIE_DONUT'
|
4
5
|
export { PRESET_PIE_HALF_DONUT } from './PRESET_PIE_HALF_DONUT'
|
5
6
|
export { PRESET_PIE_WITH_INNER_LABELS } from './PRESET_PIE_WITH_INNER_LABELS'
|
7
|
+
export { PRESET_ROSE_BASIC } from './PRESET_ROSE_BASIC'
|
6
8
|
export { PRESET_ROSE_SCALING_BY_RADIUS } from './PRESET_ROSE_SCALING_BY_RADIUS'
|
7
9
|
export { PRESET_SERIES_BASIC } from './PRESET_SERIES_BASIC'
|
8
|
-
export { PRESET_SERIES_DESC } from './PRESET_SERIES_DESC'
|
10
|
+
// export { PRESET_SERIES_DESC } from './PRESET_SERIES_DESC'
|
9
11
|
export { PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES } from './PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES'
|
10
12
|
export { PRESET_SERIES_SEPARATE_SERIES } from './PRESET_SERIES_SEPARATE_SERIES'
|
11
13
|
export { PRESET_SERIES_SUM_SERIES } from './PRESET_SERIES_SUM_SERIES'
|