@orbcharts/presets-basic 3.0.0-alpha.4 → 3.0.0-alpha.41
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.es.js +1383 -362
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_ROUND.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_THIN.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_PN_SCALE.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_CURVE.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_LOOSE_TICKS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_WITH_SOLID_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_CURVE.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/grid/index.d.ts +23 -0
- package/dist/src/index.d.ts +4 -18
- package/dist/src/multiGrid/PRESET_MULTI_GRID_BASIC.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.d.ts +6 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/index.d.ts +6 -0
- package/dist/src/params.d.ts +7 -0
- package/dist/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/series/PRESET_BUBBLES_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_DONUT.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_HALF_DONUT.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_WITH_INNER_LABELS.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/index.d.ts +12 -0
- package/dist/src/tree/PRESET_TREE_BASIC.d.ts +4 -0
- package/dist/src/tree/index.d.ts +1 -0
- package/dist/src/types.d.ts +116 -37
- package/dist/vite.config.d.ts +1 -1
- package/package.json +43 -43
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -0
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -0
- package/src/grid/PRESET_BARS_ROUND.ts +46 -0
- package/src/grid/PRESET_BARS_THIN.ts +43 -0
- package/src/grid/PRESET_GRID_BASIC.ts +25 -0
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -0
- package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -0
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -0
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -0
- package/src/grid/PRESET_LINES_BASIC.ts +44 -0
- package/src/grid/PRESET_LINES_CURVE.ts +47 -0
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -0
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -0
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -0
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -0
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -0
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -0
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -0
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -0
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -0
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -0
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -0
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -0
- package/src/grid/index.ts +23 -0
- package/src/index.ts +4 -133
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -0
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -0
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -0
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -0
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -0
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -0
- package/src/multiGrid/index.ts +6 -0
- package/src/params.ts +57 -0
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -0
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -0
- package/src/series/PRESET_PIE_BASIC.ts +19 -0
- package/src/series/PRESET_PIE_DONUT.ts +27 -0
- package/src/series/PRESET_PIE_HALF_DONUT.ts +40 -0
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +28 -0
- package/src/series/PRESET_ROSE_BASIC.ts +19 -0
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +27 -0
- package/src/series/PRESET_SERIES_BASIC.ts +15 -0
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -0
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -0
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +17 -0
- package/src/series/index.ts +13 -0
- package/src/tree/PRESET_TREE_BASIC.ts +25 -0
- package/src/tree/index.ts +1 -0
- package/src/types.ts +242 -58
- package/tsconfig.base.json +14 -0
- package/tsconfig.json +2 -13
- package/vite.config.js +22 -44
- package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_LEFT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_RIGHT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/index.d.ts +0 -10
- package/dist/src/createPreset.d.ts +0 -9
- package/dist/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Bars/index.d.ts +0 -2
- package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Dots/index.d.ts +0 -2
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +0 -2
- package/dist/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GroupAxis/index.d.ts +0 -1
- package/dist/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Lines/index.d.ts +0 -1
- package/dist/src/gridPluginParamsFiles/index.d.ts +0 -5
- package/dist/src/multiGridDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/multiGridPluginParamsFiles/index.d.ts +0 -1
- package/dist/src/multiValueDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/multiValuePluginParamsFiles/index.d.ts +0 -1
- package/dist/src/relationshipDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/relationshipPluginParamsFiles/index.d.ts +0 -1
- package/dist/src/seriesDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Bubbles/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.d.ts +0 -0
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Pie/index.d.ts +0 -2
- package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/PieLabels/index.d.ts +0 -2
- package/dist/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/SeriesLegend/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/index.d.ts +0 -4
- package/dist/src/treeDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/treePluginParamsFiles/index.d.ts +0 -1
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_LEFT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +0 -14
- package/src/chartParamsFiles/index.ts +0 -10
- package/src/createPreset.ts +0 -88
- package/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.ts +0 -16
- package/src/gridDataFormatterFiles/index.ts +0 -1
- package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +0 -15
- package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +0 -14
- package/src/gridPluginParamsFiles/Bars/index.ts +0 -2
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -12
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +0 -14
- package/src/gridPluginParamsFiles/Dots/index.ts +0 -2
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +0 -14
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -15
- package/src/gridPluginParamsFiles/GridLegend/index.ts +0 -2
- package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +0 -12
- package/src/gridPluginParamsFiles/GroupAxis/index.ts +0 -1
- package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +0 -13
- package/src/gridPluginParamsFiles/Lines/index.ts +0 -1
- package/src/gridPluginParamsFiles/index.ts +0 -6
- package/src/multiGridDataFormatterFiles/index.ts +0 -1
- package/src/multiGridPluginParamsFiles/index.ts +0 -1
- package/src/multiValueDataFormatterFiles/index.ts +0 -1
- package/src/multiValuePluginParamsFiles/index.ts +0 -1
- package/src/relationshipDataFormatterFiles/index.ts +0 -1
- package/src/relationshipPluginParamsFiles/index.ts +0 -1
- package/src/seriesDataFormatterFiles/index.ts +0 -1
- package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +0 -12
- package/src/seriesPluginParamsFiles/Bubbles/index.ts +0 -1
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.ts +0 -0
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +0 -12
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +0 -14
- package/src/seriesPluginParamsFiles/Pie/index.ts +0 -2
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +0 -13
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +0 -13
- package/src/seriesPluginParamsFiles/PieLabels/index.ts +0 -2
- package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +0 -12
- package/src/seriesPluginParamsFiles/SeriesLegend/index.ts +0 -1
- package/src/seriesPluginParamsFiles/index.ts +0 -4
- package/src/treeDataFormatterFiles/index.ts +0 -1
- package/src/treePluginParamsFiles/index.ts +0 -1
@@ -1,65 +1,551 @@
|
|
1
|
+
const a = {
|
2
|
+
Bubbles: {},
|
3
|
+
Pie: {},
|
4
|
+
PieEventTexts: {},
|
5
|
+
PieLabels: {},
|
6
|
+
Rose: {},
|
7
|
+
RoseLabels: {},
|
8
|
+
SeriesLegend: {}
|
9
|
+
}, r = {
|
10
|
+
Bars: {},
|
11
|
+
BarsPN: {},
|
12
|
+
BarStack: {},
|
13
|
+
BarsTriangle: {},
|
14
|
+
Dots: {},
|
15
|
+
GridLegend: {},
|
16
|
+
GroupAux: {},
|
17
|
+
GroupAxis: {},
|
18
|
+
LineAreas: {},
|
19
|
+
Lines: {},
|
20
|
+
ScalingArea: {},
|
21
|
+
ValueAxis: {},
|
22
|
+
ValueStackAxis: {}
|
23
|
+
}, s = {
|
24
|
+
MultiBars: {},
|
25
|
+
MultiBarStack: {},
|
26
|
+
MultiBarsTriangle: {},
|
27
|
+
MultiDots: {},
|
28
|
+
MultiGridLegend: {},
|
29
|
+
MultiGroupAxis: {},
|
30
|
+
MultiLineAreas: {},
|
31
|
+
MultiLines: {},
|
32
|
+
MultiValueAxis: {},
|
33
|
+
MultiValueStackAxis: {},
|
34
|
+
OverlappingValueAxes: {},
|
35
|
+
OverlappingValueStackAxes: {}
|
36
|
+
}, t = {
|
37
|
+
Tooltip: {}
|
38
|
+
}, _ = {
|
39
|
+
name: "PRESET_BUBBLES_SCALING_BY_RADIUS",
|
40
|
+
description: "以半徑尺寸為比例的泡泡圖",
|
41
|
+
allPluginParams: {
|
42
|
+
...t,
|
43
|
+
Bubbles: {
|
44
|
+
arcScaleType: "radius"
|
45
|
+
},
|
46
|
+
SeriesLegend: {
|
47
|
+
listRectRadius: 7
|
48
|
+
// 圓型圖例列點
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}, P = {
|
52
|
+
name: "PRESET_BUBBLES_SEPARATE_SERIES",
|
53
|
+
description: "分開顯示Series泡泡",
|
54
|
+
chartParams: {
|
55
|
+
// 加長留空
|
56
|
+
padding: {
|
57
|
+
top: 160,
|
58
|
+
right: 160,
|
59
|
+
bottom: 160,
|
60
|
+
left: 160
|
61
|
+
}
|
62
|
+
},
|
63
|
+
dataFormatter: {
|
64
|
+
separateSeries: !0
|
65
|
+
},
|
66
|
+
allPluginParams: {
|
67
|
+
...t,
|
68
|
+
Bubbles: {},
|
69
|
+
SeriesLegend: {
|
70
|
+
listRectRadius: 7
|
71
|
+
// 圓型圖例列點
|
72
|
+
}
|
73
|
+
}
|
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 = {
|
91
|
+
name: "PRESET_PIE_DONUT",
|
92
|
+
description: "甜甜圈圖",
|
93
|
+
dataFormatter: {
|
94
|
+
sort: (i, e) => e.value - i.value
|
95
|
+
},
|
96
|
+
allPluginParams: {
|
97
|
+
...t,
|
98
|
+
Pie: {
|
99
|
+
innerRadius: 0.5
|
100
|
+
},
|
101
|
+
PieLabels: {},
|
102
|
+
PieEventTexts: {},
|
103
|
+
SeriesLegend: {
|
104
|
+
listRectRadius: 7
|
105
|
+
// 圓型圖例列點
|
106
|
+
}
|
107
|
+
}
|
108
|
+
};
|
109
|
+
n.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
1
110
|
const l = {
|
2
|
-
|
3
|
-
description: "
|
4
|
-
|
111
|
+
name: "PRESET_PIE_HALF_DONUT",
|
112
|
+
description: "半圓甜甜圈圖",
|
113
|
+
chartParams: {
|
114
|
+
padding: {
|
115
|
+
top: 120,
|
116
|
+
right: 120,
|
117
|
+
bottom: 0,
|
118
|
+
left: 60
|
119
|
+
}
|
120
|
+
},
|
121
|
+
dataFormatter: {
|
122
|
+
sort: (i, e) => e.value - i.value
|
123
|
+
},
|
124
|
+
allPluginParams: {
|
125
|
+
...t,
|
126
|
+
Pie: {
|
127
|
+
innerRadius: 0.5,
|
128
|
+
startAngle: -Math.PI / 2,
|
129
|
+
endAngle: Math.PI / 2
|
130
|
+
},
|
131
|
+
PieLabels: {
|
132
|
+
startAngle: -Math.PI / 2,
|
133
|
+
endAngle: Math.PI / 2
|
134
|
+
},
|
135
|
+
PieEventTexts: {},
|
136
|
+
SeriesLegend: {
|
137
|
+
listRectRadius: 7
|
138
|
+
// 圓型圖例列點
|
139
|
+
}
|
140
|
+
}
|
141
|
+
};
|
142
|
+
l.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
143
|
+
const d = {
|
144
|
+
name: "PRESET_PIE_WITH_INNER_LABELS",
|
145
|
+
description: "圓餅圖及內部資料標籤",
|
146
|
+
dataFormatter: {
|
147
|
+
sort: (i, e) => e.value - i.value
|
148
|
+
},
|
149
|
+
allPluginParams: {
|
150
|
+
...t,
|
151
|
+
Pie: {},
|
152
|
+
PieLabels: {
|
153
|
+
labelCentroid: 1.3,
|
154
|
+
// 圖內資料標籤
|
155
|
+
labelColorType: "primary"
|
156
|
+
},
|
157
|
+
PieEventTexts: {},
|
158
|
+
SeriesLegend: {
|
159
|
+
listRectRadius: 7
|
160
|
+
// 圓型圖例列點
|
161
|
+
}
|
162
|
+
}
|
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 = {
|
182
|
+
name: "PRESET_ROSE_SCALING_BY_RADIUS",
|
183
|
+
description: "以半徑尺寸為比例的玫瑰圖",
|
184
|
+
dataFormatter: {
|
185
|
+
sort: (i, e) => e.value - i.value
|
186
|
+
},
|
187
|
+
allPluginParams: {
|
188
|
+
...t,
|
189
|
+
Rose: {
|
190
|
+
arcScaleType: "radius"
|
191
|
+
},
|
192
|
+
RoseLabels: {
|
193
|
+
arcScaleType: "radius"
|
194
|
+
},
|
195
|
+
SeriesLegend: {
|
196
|
+
listRectRadius: 7
|
197
|
+
// 圓型圖例列點
|
198
|
+
}
|
199
|
+
}
|
200
|
+
};
|
201
|
+
u.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
202
|
+
const A = {
|
203
|
+
name: "PRESET_SERIES_BASIC",
|
204
|
+
description: "基本Series參數",
|
205
|
+
allPluginParams: {
|
206
|
+
...a,
|
207
|
+
...t,
|
208
|
+
SeriesLegend: {
|
209
|
+
listRectRadius: 7
|
210
|
+
// 圓型圖例列點
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}, E = {
|
214
|
+
name: "PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",
|
215
|
+
description: "分開顯示Series並合併Series資料",
|
216
|
+
dataFormatter: {
|
217
|
+
sort: (i, e) => e.value - i.value,
|
218
|
+
separateSeries: !0,
|
219
|
+
sumSeries: !0
|
220
|
+
},
|
221
|
+
allPluginParams: {
|
222
|
+
...a,
|
223
|
+
...t
|
224
|
+
}
|
225
|
+
};
|
226
|
+
E.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
227
|
+
const S = {
|
228
|
+
name: "PRESET_SERIES_SEPARATE_SERIES",
|
229
|
+
description: "分開顯示Series",
|
230
|
+
dataFormatter: {
|
231
|
+
sort: (i, e) => e.value - i.value,
|
232
|
+
separateSeries: !0
|
233
|
+
},
|
234
|
+
allPluginParams: {
|
235
|
+
...a,
|
236
|
+
...t
|
237
|
+
}
|
238
|
+
};
|
239
|
+
S.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
240
|
+
const R = {
|
241
|
+
name: "PRESET_SERIES_SUM_SERIES",
|
242
|
+
description: "合併Series資料",
|
243
|
+
dataFormatter: {
|
244
|
+
sort: (i, e) => e.value - i.value,
|
245
|
+
sumSeries: !0
|
246
|
+
},
|
247
|
+
allPluginParams: {
|
248
|
+
...a,
|
249
|
+
...t
|
250
|
+
}
|
251
|
+
};
|
252
|
+
R.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
253
|
+
const p = {
|
254
|
+
name: "PRESET_BARS_HORIZONTAL_AND_ROUND",
|
255
|
+
description: "橫向圓角長條圖",
|
256
|
+
chartParams: {
|
5
257
|
padding: {
|
6
258
|
top: 60,
|
7
259
|
right: 60,
|
8
260
|
bottom: 120,
|
9
|
-
left:
|
261
|
+
left: 160
|
262
|
+
}
|
263
|
+
},
|
264
|
+
dataFormatter: {
|
265
|
+
grid: {
|
266
|
+
valueAxis: {
|
267
|
+
position: "bottom"
|
268
|
+
// position: 'top'
|
269
|
+
// position: 'left'
|
270
|
+
// position: 'right'
|
271
|
+
},
|
272
|
+
groupAxis: {
|
273
|
+
position: "left"
|
274
|
+
// position: 'right'
|
275
|
+
// position: 'bottom'
|
276
|
+
// position: 'top'
|
277
|
+
}
|
278
|
+
}
|
279
|
+
},
|
280
|
+
allPluginParams: {
|
281
|
+
...t,
|
282
|
+
Bars: {
|
283
|
+
barWidth: 0,
|
284
|
+
barPadding: 1,
|
285
|
+
barGroupPadding: 10,
|
286
|
+
barRadius: !0
|
10
287
|
},
|
11
|
-
|
288
|
+
GroupAxis: {},
|
289
|
+
ValueAxis: {},
|
290
|
+
GroupAux: {},
|
291
|
+
GridLegend: {
|
292
|
+
// 底部圖例及圓弧列點
|
293
|
+
position: "bottom",
|
294
|
+
justify: "center",
|
295
|
+
padding: 14,
|
296
|
+
listRectRadius: 7
|
297
|
+
}
|
12
298
|
}
|
13
|
-
},
|
14
|
-
|
15
|
-
description: "
|
16
|
-
|
299
|
+
}, c = {
|
300
|
+
name: "PRESET_BARS_HORIZONTAL_AND_THIN",
|
301
|
+
description: "橫向細長長條圖",
|
302
|
+
chartParams: {
|
17
303
|
padding: {
|
18
304
|
top: 60,
|
19
305
|
right: 60,
|
20
306
|
bottom: 120,
|
21
|
-
left:
|
307
|
+
left: 160
|
308
|
+
}
|
309
|
+
},
|
310
|
+
dataFormatter: {
|
311
|
+
grid: {
|
312
|
+
valueAxis: {
|
313
|
+
position: "bottom"
|
314
|
+
// position: 'top'
|
315
|
+
// position: 'left'
|
316
|
+
// position: 'right'
|
317
|
+
},
|
318
|
+
groupAxis: {
|
319
|
+
position: "left"
|
320
|
+
// position: 'right'
|
321
|
+
// position: 'bottom'
|
322
|
+
// position: 'top'
|
323
|
+
}
|
324
|
+
}
|
325
|
+
},
|
326
|
+
allPluginParams: {
|
327
|
+
...t,
|
328
|
+
Bars: {
|
329
|
+
barWidth: 20,
|
330
|
+
barPadding: 1,
|
331
|
+
barGroupPadding: 10
|
332
|
+
},
|
333
|
+
GroupAxis: {},
|
334
|
+
ValueAxis: {},
|
335
|
+
GroupAux: {},
|
336
|
+
GridLegend: {
|
337
|
+
position: "bottom",
|
338
|
+
justify: "center",
|
339
|
+
padding: 14
|
22
340
|
}
|
23
341
|
}
|
24
|
-
},
|
25
|
-
|
26
|
-
description: "
|
27
|
-
|
342
|
+
}, m = {
|
343
|
+
name: "PRESET_BARS_ROUND",
|
344
|
+
description: "圓角長條圖",
|
345
|
+
chartParams: {
|
28
346
|
padding: {
|
29
347
|
top: 60,
|
30
348
|
right: 60,
|
31
|
-
bottom:
|
349
|
+
bottom: 120,
|
32
350
|
left: 60
|
33
351
|
}
|
352
|
+
},
|
353
|
+
allPluginParams: {
|
354
|
+
...t,
|
355
|
+
Bars: {
|
356
|
+
barWidth: 0,
|
357
|
+
barPadding: 1,
|
358
|
+
barGroupPadding: 10,
|
359
|
+
barRadius: !0
|
360
|
+
},
|
361
|
+
GroupAxis: {},
|
362
|
+
ValueAxis: {},
|
363
|
+
GroupAux: {},
|
364
|
+
GridLegend: {
|
365
|
+
// 底部圖例及圓弧列點
|
366
|
+
position: "bottom",
|
367
|
+
justify: "center",
|
368
|
+
padding: 14,
|
369
|
+
listRectRadius: 7
|
370
|
+
}
|
34
371
|
}
|
35
|
-
},
|
36
|
-
|
37
|
-
description: "
|
38
|
-
|
372
|
+
}, I = {
|
373
|
+
name: "PRESET_BARS_THIN",
|
374
|
+
description: "細長條圖",
|
375
|
+
chartParams: {
|
39
376
|
padding: {
|
40
377
|
top: 60,
|
41
378
|
right: 60,
|
42
|
-
bottom:
|
379
|
+
bottom: 120,
|
43
380
|
left: 60
|
381
|
+
}
|
382
|
+
},
|
383
|
+
allPluginParams: {
|
384
|
+
...t,
|
385
|
+
Bars: {
|
386
|
+
barWidth: 20,
|
387
|
+
barPadding: 1,
|
388
|
+
barGroupPadding: 10
|
44
389
|
},
|
45
|
-
|
390
|
+
GroupAxis: {},
|
391
|
+
ValueAxis: {},
|
392
|
+
GroupAux: {},
|
393
|
+
GridLegend: {
|
394
|
+
position: "bottom",
|
395
|
+
justify: "center",
|
396
|
+
padding: 14
|
397
|
+
}
|
46
398
|
}
|
47
|
-
},
|
48
|
-
|
49
|
-
description: "
|
50
|
-
|
399
|
+
}, T = {
|
400
|
+
name: "PRESET_GRID_BASIC",
|
401
|
+
description: "基本Grid參數",
|
402
|
+
chartParams: {
|
51
403
|
padding: {
|
52
404
|
top: 60,
|
53
405
|
right: 60,
|
54
406
|
bottom: 120,
|
55
407
|
left: 60
|
408
|
+
}
|
409
|
+
},
|
410
|
+
allPluginParams: {
|
411
|
+
...r,
|
412
|
+
...t,
|
413
|
+
GridLegend: {
|
414
|
+
position: "bottom",
|
415
|
+
justify: "center",
|
416
|
+
padding: 14
|
417
|
+
}
|
418
|
+
}
|
419
|
+
}, L = {
|
420
|
+
name: "PRESET_GRID_HORIZONTAL",
|
421
|
+
description: "橫向圖",
|
422
|
+
chartParams: {
|
423
|
+
// 間距下面及左邊留空
|
424
|
+
padding: {
|
425
|
+
top: 60,
|
426
|
+
right: 60,
|
427
|
+
bottom: 120,
|
428
|
+
left: 160
|
429
|
+
}
|
430
|
+
},
|
431
|
+
dataFormatter: {
|
432
|
+
grid: {
|
433
|
+
valueAxis: {
|
434
|
+
position: "bottom"
|
435
|
+
// position: 'top'
|
436
|
+
// position: 'left'
|
437
|
+
// position: 'right'
|
438
|
+
},
|
439
|
+
groupAxis: {
|
440
|
+
position: "left"
|
441
|
+
// position: 'right'
|
442
|
+
// position: 'bottom'
|
443
|
+
// position: 'top'
|
444
|
+
}
|
445
|
+
}
|
446
|
+
},
|
447
|
+
allPluginParams: {
|
448
|
+
...r,
|
449
|
+
...t,
|
450
|
+
GridLegend: {
|
451
|
+
position: "bottom",
|
452
|
+
justify: "center",
|
453
|
+
padding: 14
|
454
|
+
}
|
455
|
+
}
|
456
|
+
}, h = {
|
457
|
+
name: "PRESET_GRID_PN_SCALE",
|
458
|
+
description: "正負值分向圖",
|
459
|
+
chartParams: {
|
460
|
+
padding: {
|
461
|
+
top: 60,
|
462
|
+
right: 60,
|
463
|
+
bottom: 120,
|
464
|
+
left: 60
|
465
|
+
}
|
466
|
+
},
|
467
|
+
dataFormatter: {
|
468
|
+
grid: {
|
469
|
+
valueAxis: {
|
470
|
+
scaleDomain: ["auto", "auto"],
|
471
|
+
scaleRange: [0.05, 0.95]
|
472
|
+
}
|
473
|
+
}
|
474
|
+
},
|
475
|
+
allPluginParams: {
|
476
|
+
...r,
|
477
|
+
...t,
|
478
|
+
GridLegend: {
|
479
|
+
position: "bottom",
|
480
|
+
justify: "center",
|
481
|
+
padding: 14
|
482
|
+
}
|
483
|
+
}
|
484
|
+
}, x = {
|
485
|
+
name: "PRESET_GRID_ROTATE_AXIS_LABEL",
|
486
|
+
description: "傾斜標籤",
|
487
|
+
chartParams: {
|
488
|
+
// 間距下面加長留空
|
489
|
+
padding: {
|
490
|
+
top: 60,
|
491
|
+
right: 60,
|
492
|
+
bottom: 160,
|
493
|
+
left: 60
|
494
|
+
}
|
495
|
+
},
|
496
|
+
allPluginParams: {
|
497
|
+
...r,
|
498
|
+
...t,
|
499
|
+
GroupAux: {
|
500
|
+
labelRotate: -30
|
56
501
|
},
|
57
|
-
|
502
|
+
GroupAxis: {
|
503
|
+
tickPadding: 15,
|
504
|
+
tickTextRotate: -30
|
505
|
+
},
|
506
|
+
GridLegend: {
|
507
|
+
position: "bottom",
|
508
|
+
justify: "center",
|
509
|
+
padding: 14
|
510
|
+
}
|
58
511
|
}
|
59
|
-
},
|
60
|
-
|
61
|
-
description: "
|
62
|
-
|
512
|
+
}, G = {
|
513
|
+
name: "PRESET_GRID_SEPARATE_SERIES",
|
514
|
+
description: "分開顯示Series",
|
515
|
+
chartParams: {
|
516
|
+
padding: {
|
517
|
+
top: 60,
|
518
|
+
right: 60,
|
519
|
+
bottom: 160,
|
520
|
+
left: 60
|
521
|
+
}
|
522
|
+
},
|
523
|
+
dataFormatter: {
|
524
|
+
grid: {
|
525
|
+
// seriesSlotIndexes: [0, 1],
|
526
|
+
separateSeries: !0
|
527
|
+
}
|
528
|
+
},
|
529
|
+
allPluginParams: {
|
530
|
+
...r,
|
531
|
+
...t,
|
532
|
+
GroupAux: {
|
533
|
+
labelRotate: -30
|
534
|
+
},
|
535
|
+
GroupAxis: {
|
536
|
+
tickPadding: 15,
|
537
|
+
tickTextRotate: -30
|
538
|
+
},
|
539
|
+
GridLegend: {
|
540
|
+
position: "bottom",
|
541
|
+
justify: "center",
|
542
|
+
padding: 14
|
543
|
+
}
|
544
|
+
}
|
545
|
+
}, b = {
|
546
|
+
name: "PRESET_LINE_AREAS_BASIC",
|
547
|
+
description: "基本LineArea參數",
|
548
|
+
chartParams: {
|
63
549
|
padding: {
|
64
550
|
top: 60,
|
65
551
|
right: 60,
|
@@ -67,373 +553,908 @@ const l = {
|
|
67
553
|
left: 60
|
68
554
|
},
|
69
555
|
highlightTarget: "series"
|
556
|
+
},
|
557
|
+
dataFormatter: {
|
558
|
+
grid: {
|
559
|
+
groupAxis: {
|
560
|
+
scalePadding: 0
|
561
|
+
}
|
562
|
+
}
|
563
|
+
},
|
564
|
+
allPluginParams: {
|
565
|
+
...t,
|
566
|
+
Lines: {},
|
567
|
+
LineAreas: {},
|
568
|
+
Dots: {},
|
569
|
+
GroupAxis: {},
|
570
|
+
ValueAxis: {},
|
571
|
+
GroupAux: {},
|
572
|
+
GridLegend: {
|
573
|
+
position: "bottom",
|
574
|
+
justify: "center",
|
575
|
+
padding: 14,
|
576
|
+
listRectHeight: 2
|
577
|
+
}
|
70
578
|
}
|
71
|
-
},
|
72
|
-
|
73
|
-
description: "
|
74
|
-
|
579
|
+
}, M = {
|
580
|
+
name: "PRESET_LINE_AREAS_CURVE",
|
581
|
+
description: "弧線折線圖",
|
582
|
+
chartParams: {
|
75
583
|
padding: {
|
76
584
|
top: 60,
|
77
585
|
right: 60,
|
78
586
|
bottom: 120,
|
79
587
|
left: 60
|
588
|
+
},
|
589
|
+
highlightTarget: "series"
|
590
|
+
},
|
591
|
+
dataFormatter: {
|
592
|
+
grid: {
|
593
|
+
groupAxis: {
|
594
|
+
scalePadding: 0
|
595
|
+
}
|
596
|
+
}
|
597
|
+
},
|
598
|
+
allPluginParams: {
|
599
|
+
...t,
|
600
|
+
Lines: {
|
601
|
+
lineCurve: "curveMonotoneX",
|
602
|
+
lineWidth: 3
|
603
|
+
},
|
604
|
+
LineAreas: {
|
605
|
+
lineCurve: "curveMonotoneX"
|
606
|
+
},
|
607
|
+
Dots: {},
|
608
|
+
GroupAxis: {},
|
609
|
+
ValueAxis: {},
|
610
|
+
GroupAux: {},
|
611
|
+
GridLegend: {
|
612
|
+
position: "bottom",
|
613
|
+
justify: "center",
|
614
|
+
padding: 14,
|
615
|
+
listRectHeight: 2
|
80
616
|
}
|
81
617
|
}
|
82
|
-
},
|
83
|
-
|
84
|
-
description: "
|
85
|
-
|
618
|
+
}, N = {
|
619
|
+
name: "PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS",
|
620
|
+
description: "折線圖及Highlight Group圓點",
|
621
|
+
chartParams: {
|
86
622
|
padding: {
|
87
623
|
top: 60,
|
88
624
|
right: 60,
|
89
|
-
bottom:
|
90
|
-
left:
|
625
|
+
bottom: 120,
|
626
|
+
left: 60
|
627
|
+
},
|
628
|
+
highlightTarget: "group"
|
629
|
+
},
|
630
|
+
dataFormatter: {
|
631
|
+
grid: {
|
632
|
+
groupAxis: {
|
633
|
+
scalePadding: 0
|
634
|
+
}
|
635
|
+
}
|
636
|
+
},
|
637
|
+
allPluginParams: {
|
638
|
+
...t,
|
639
|
+
Lines: {
|
640
|
+
lineWidth: 3
|
641
|
+
},
|
642
|
+
LineAreas: {},
|
643
|
+
Dots: {
|
644
|
+
onlyShowHighlighted: !1
|
645
|
+
},
|
646
|
+
GroupAxis: {},
|
647
|
+
ValueAxis: {},
|
648
|
+
GroupAux: {},
|
649
|
+
GridLegend: {
|
650
|
+
position: "bottom",
|
651
|
+
justify: "center",
|
652
|
+
padding: 14,
|
653
|
+
listRectHeight: 2
|
91
654
|
}
|
92
655
|
}
|
93
|
-
},
|
94
|
-
|
95
|
-
description: "
|
96
|
-
|
656
|
+
}, D = {
|
657
|
+
name: "PRESET_LINE_AREAS_HORIZONTAL",
|
658
|
+
description: "橫向折線圖",
|
659
|
+
chartParams: {
|
97
660
|
padding: {
|
98
|
-
top:
|
99
|
-
right:
|
100
|
-
bottom:
|
661
|
+
top: 60,
|
662
|
+
right: 60,
|
663
|
+
bottom: 120,
|
664
|
+
left: 160
|
665
|
+
},
|
666
|
+
highlightTarget: "series"
|
667
|
+
},
|
668
|
+
dataFormatter: {
|
669
|
+
grid: {
|
670
|
+
valueAxis: {
|
671
|
+
position: "bottom"
|
672
|
+
},
|
673
|
+
groupAxis: {
|
674
|
+
position: "left",
|
675
|
+
scalePadding: 0
|
676
|
+
}
|
677
|
+
}
|
678
|
+
},
|
679
|
+
allPluginParams: {
|
680
|
+
...t,
|
681
|
+
Lines: {},
|
682
|
+
LineAreas: {},
|
683
|
+
Dots: {},
|
684
|
+
GroupAxis: {},
|
685
|
+
ValueAxis: {},
|
686
|
+
GroupAux: {},
|
687
|
+
GridLegend: {
|
688
|
+
position: "bottom",
|
689
|
+
justify: "center",
|
690
|
+
padding: 14,
|
691
|
+
listRectHeight: 2
|
692
|
+
}
|
693
|
+
}
|
694
|
+
}, B = {
|
695
|
+
name: "PRESET_LINE_AREAS_LOOSE_TICKS",
|
696
|
+
description: "寬鬆標籤",
|
697
|
+
chartParams: {
|
698
|
+
padding: {
|
699
|
+
top: 60,
|
700
|
+
right: 60,
|
701
|
+
bottom: 120,
|
101
702
|
left: 60
|
703
|
+
},
|
704
|
+
highlightTarget: "series"
|
705
|
+
},
|
706
|
+
dataFormatter: {
|
707
|
+
grid: {
|
708
|
+
groupAxis: {
|
709
|
+
scalePadding: 0
|
710
|
+
}
|
711
|
+
}
|
712
|
+
},
|
713
|
+
allPluginParams: {
|
714
|
+
...t,
|
715
|
+
Lines: {},
|
716
|
+
LineAreas: {},
|
717
|
+
Dots: {},
|
718
|
+
GroupAxis: {
|
719
|
+
ticks: 6
|
720
|
+
},
|
721
|
+
ValueAxis: {},
|
722
|
+
GroupAux: {},
|
723
|
+
GridLegend: {
|
724
|
+
position: "bottom",
|
725
|
+
justify: "center",
|
726
|
+
padding: 14,
|
727
|
+
listRectHeight: 2
|
102
728
|
}
|
103
729
|
}
|
104
|
-
},
|
105
|
-
|
106
|
-
description: "
|
107
|
-
|
730
|
+
}, f = {
|
731
|
+
name: "PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",
|
732
|
+
description: "傾斜標籤",
|
733
|
+
chartParams: {
|
108
734
|
padding: {
|
109
735
|
top: 60,
|
110
|
-
right:
|
111
|
-
bottom:
|
736
|
+
right: 60,
|
737
|
+
bottom: 160,
|
112
738
|
left: 60
|
739
|
+
},
|
740
|
+
highlightTarget: "series"
|
741
|
+
},
|
742
|
+
dataFormatter: {
|
743
|
+
grid: {
|
744
|
+
groupAxis: {
|
745
|
+
scalePadding: 0
|
746
|
+
}
|
747
|
+
}
|
748
|
+
},
|
749
|
+
allPluginParams: {
|
750
|
+
...t,
|
751
|
+
Lines: {},
|
752
|
+
LineAreas: {},
|
753
|
+
Dots: {},
|
754
|
+
GroupAxis: {
|
755
|
+
tickPadding: 15,
|
756
|
+
tickTextRotate: -30
|
757
|
+
},
|
758
|
+
ValueAxis: {},
|
759
|
+
GroupAux: {
|
760
|
+
labelRotate: -30
|
761
|
+
},
|
762
|
+
GridLegend: {
|
763
|
+
position: "bottom",
|
764
|
+
justify: "center",
|
765
|
+
padding: 14,
|
766
|
+
listRectHeight: 2
|
113
767
|
}
|
114
768
|
}
|
115
|
-
},
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
769
|
+
}, H = {
|
770
|
+
name: "PRESET_LINE_AREAS_SEPARATE_SERIES",
|
771
|
+
description: "LineAreas 分開顯示Series",
|
772
|
+
chartParams: {
|
773
|
+
padding: {
|
774
|
+
top: 60,
|
775
|
+
right: 60,
|
776
|
+
bottom: 160,
|
777
|
+
left: 60
|
778
|
+
},
|
779
|
+
highlightTarget: "series"
|
780
|
+
},
|
781
|
+
dataFormatter: {
|
782
|
+
grid: {
|
783
|
+
// seriesSlotIndexes: [0, 1],
|
784
|
+
separateSeries: !0,
|
785
|
+
groupAxis: {
|
786
|
+
scalePadding: 0
|
787
|
+
}
|
788
|
+
}
|
789
|
+
},
|
790
|
+
allPluginParams: {
|
791
|
+
...t,
|
792
|
+
Lines: {},
|
793
|
+
LineAreas: {},
|
794
|
+
Dots: {},
|
795
|
+
GroupAxis: {
|
796
|
+
tickPadding: 15,
|
797
|
+
tickTextRotate: -30
|
798
|
+
},
|
799
|
+
ValueAxis: {},
|
800
|
+
GroupAux: {
|
801
|
+
labelRotate: -30
|
802
|
+
},
|
803
|
+
GridLegend: {
|
804
|
+
position: "bottom",
|
805
|
+
justify: "center",
|
806
|
+
padding: 14,
|
807
|
+
listRectHeight: 2
|
808
|
+
}
|
137
809
|
}
|
138
|
-
},
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
810
|
+
}, O = {
|
811
|
+
name: "PRESET_LINES_BASIC",
|
812
|
+
description: "基本Lines參數",
|
813
|
+
chartParams: {
|
814
|
+
padding: {
|
815
|
+
top: 60,
|
816
|
+
right: 60,
|
817
|
+
bottom: 120,
|
818
|
+
left: 60
|
819
|
+
},
|
820
|
+
highlightTarget: "series"
|
821
|
+
},
|
822
|
+
allPluginParams: {
|
823
|
+
...t,
|
824
|
+
Lines: {},
|
825
|
+
Dots: {},
|
826
|
+
GroupAxis: {},
|
827
|
+
ValueAxis: {},
|
828
|
+
GroupAux: {},
|
829
|
+
GridLegend: {
|
830
|
+
position: "bottom",
|
831
|
+
justify: "center",
|
832
|
+
padding: 14,
|
833
|
+
listRectHeight: 2
|
834
|
+
}
|
145
835
|
}
|
146
|
-
},
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
836
|
+
}, v = {
|
837
|
+
name: "PRESET_LINES_CURVE",
|
838
|
+
description: "弧線折線圖",
|
839
|
+
chartParams: {
|
840
|
+
padding: {
|
841
|
+
top: 60,
|
842
|
+
right: 60,
|
843
|
+
bottom: 120,
|
844
|
+
left: 60
|
845
|
+
},
|
846
|
+
highlightTarget: "series"
|
847
|
+
},
|
848
|
+
allPluginParams: {
|
849
|
+
...t,
|
850
|
+
Lines: {
|
851
|
+
lineCurve: "curveMonotoneX",
|
852
|
+
lineWidth: 3
|
853
|
+
},
|
854
|
+
Dots: {},
|
855
|
+
GroupAxis: {},
|
856
|
+
ValueAxis: {},
|
857
|
+
GroupAux: {},
|
858
|
+
GridLegend: {
|
859
|
+
position: "bottom",
|
860
|
+
justify: "center",
|
861
|
+
padding: 14,
|
862
|
+
listRectHeight: 2
|
863
|
+
}
|
155
864
|
}
|
156
|
-
},
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
865
|
+
}, U = {
|
866
|
+
name: "PRESET_LINES_HIGHLIGHT_GROUP_DOTS",
|
867
|
+
description: "折線圖及Highlight Group圓點",
|
868
|
+
chartParams: {
|
869
|
+
padding: {
|
870
|
+
top: 60,
|
871
|
+
right: 60,
|
872
|
+
bottom: 120,
|
873
|
+
left: 60
|
874
|
+
},
|
875
|
+
highlightTarget: "group"
|
876
|
+
},
|
877
|
+
allPluginParams: {
|
878
|
+
...t,
|
879
|
+
Lines: {},
|
880
|
+
Dots: {
|
881
|
+
onlyShowHighlighted: !1
|
882
|
+
},
|
883
|
+
GroupAxis: {},
|
884
|
+
ValueAxis: {},
|
885
|
+
GroupAux: {},
|
886
|
+
GridLegend: {
|
887
|
+
position: "bottom",
|
888
|
+
justify: "center",
|
889
|
+
padding: 14,
|
890
|
+
listRectHeight: 2
|
891
|
+
}
|
164
892
|
}
|
165
|
-
},
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
893
|
+
}, V = {
|
894
|
+
name: "PRESET_LINES_HORIZONTAL",
|
895
|
+
description: "橫向折線圖",
|
896
|
+
chartParams: {
|
897
|
+
padding: {
|
898
|
+
top: 60,
|
899
|
+
right: 60,
|
900
|
+
bottom: 120,
|
901
|
+
left: 160
|
902
|
+
},
|
903
|
+
highlightTarget: "series"
|
904
|
+
},
|
905
|
+
dataFormatter: {
|
906
|
+
grid: {
|
907
|
+
valueAxis: {
|
908
|
+
position: "bottom"
|
909
|
+
// position: 'top'
|
910
|
+
// position: 'left'
|
911
|
+
// position: 'right'
|
912
|
+
},
|
913
|
+
groupAxis: {
|
914
|
+
position: "left"
|
915
|
+
// position: 'right'
|
916
|
+
// position: 'bottom'
|
917
|
+
// position: 'top'
|
918
|
+
}
|
919
|
+
}
|
920
|
+
},
|
921
|
+
allPluginParams: {
|
922
|
+
...t,
|
923
|
+
Lines: {},
|
924
|
+
Dots: {},
|
925
|
+
GroupAxis: {},
|
926
|
+
ValueAxis: {},
|
927
|
+
GroupAux: {},
|
928
|
+
GridLegend: {
|
929
|
+
position: "bottom",
|
930
|
+
justify: "center",
|
931
|
+
padding: 14,
|
932
|
+
listRectHeight: 2
|
933
|
+
}
|
173
934
|
}
|
174
|
-
},
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
position: "bottom"
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
}
|
201
|
-
}
|
202
|
-
}, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
203
|
-
__proto__: null,
|
204
|
-
DF_BOTTOM_VALUE_AXIS: C
|
205
|
-
}, Symbol.toStringTag, { value: "Module" })), y = {
|
206
|
-
id: "PP_BARS_ROUND",
|
207
|
-
chartType: "grid",
|
208
|
-
pluginName: "Bars",
|
209
|
-
description: "圓角長條圖",
|
210
|
-
data: {
|
211
|
-
barWidth: 0,
|
212
|
-
barPadding: 1,
|
213
|
-
barGroupPadding: 10,
|
214
|
-
barRadius: !0
|
935
|
+
}, y = {
|
936
|
+
name: "PRESET_LINES_LOOSE_TICKS",
|
937
|
+
description: "寬鬆標籤",
|
938
|
+
chartParams: {
|
939
|
+
padding: {
|
940
|
+
top: 60,
|
941
|
+
right: 60,
|
942
|
+
bottom: 120,
|
943
|
+
left: 60
|
944
|
+
},
|
945
|
+
highlightTarget: "series"
|
946
|
+
},
|
947
|
+
allPluginParams: {
|
948
|
+
...t,
|
949
|
+
Lines: {},
|
950
|
+
Dots: {},
|
951
|
+
GroupAxis: {
|
952
|
+
ticks: 6
|
953
|
+
},
|
954
|
+
ValueAxis: {},
|
955
|
+
GroupAux: {},
|
956
|
+
GridLegend: {
|
957
|
+
position: "bottom",
|
958
|
+
justify: "center",
|
959
|
+
padding: 14,
|
960
|
+
listRectHeight: 2
|
961
|
+
}
|
215
962
|
}
|
216
963
|
}, F = {
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
964
|
+
name: "PRESET_LINES_ROTATE_AXIS_LABEL",
|
965
|
+
description: "傾斜標籤",
|
966
|
+
chartParams: {
|
967
|
+
padding: {
|
968
|
+
top: 60,
|
969
|
+
right: 60,
|
970
|
+
bottom: 160,
|
971
|
+
left: 60
|
972
|
+
},
|
973
|
+
highlightTarget: "series"
|
974
|
+
},
|
975
|
+
allPluginParams: {
|
976
|
+
...t,
|
977
|
+
Lines: {},
|
978
|
+
Dots: {},
|
979
|
+
GroupAxis: {
|
980
|
+
tickPadding: 15,
|
981
|
+
tickTextRotate: -30
|
982
|
+
},
|
983
|
+
ValueAxis: {},
|
984
|
+
GroupAux: {
|
985
|
+
labelRotate: -30
|
986
|
+
},
|
987
|
+
GridLegend: {
|
988
|
+
position: "bottom",
|
989
|
+
justify: "center",
|
990
|
+
padding: 14,
|
991
|
+
listRectHeight: 2
|
992
|
+
}
|
225
993
|
}
|
226
|
-
},
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
994
|
+
}, C = {
|
995
|
+
name: "PRESET_LINES_WITH_SOLID_DOTS",
|
996
|
+
description: "折線圖及實心圓點",
|
997
|
+
chartParams: {
|
998
|
+
padding: {
|
999
|
+
top: 60,
|
1000
|
+
right: 60,
|
1001
|
+
bottom: 120,
|
1002
|
+
left: 60
|
1003
|
+
},
|
1004
|
+
highlightTarget: "series"
|
1005
|
+
},
|
1006
|
+
allPluginParams: {
|
1007
|
+
...t,
|
1008
|
+
Lines: {},
|
1009
|
+
Dots: {
|
1010
|
+
radius: 3,
|
1011
|
+
fillColorType: "series",
|
1012
|
+
onlyShowHighlighted: !1
|
1013
|
+
},
|
1014
|
+
GroupAxis: {},
|
1015
|
+
ValueAxis: {},
|
1016
|
+
GroupAux: {},
|
1017
|
+
GridLegend: {
|
1018
|
+
position: "bottom",
|
1019
|
+
justify: "center",
|
1020
|
+
padding: 14,
|
1021
|
+
listRectHeight: 2
|
1022
|
+
}
|
1023
|
+
}
|
1024
|
+
}, k = {
|
1025
|
+
name: "PRESET_MULTI_GRID_BASIC",
|
1026
|
+
description: "基本MultiGrid參數",
|
1027
|
+
chartParams: {
|
1028
|
+
padding: {
|
1029
|
+
top: 60,
|
1030
|
+
right: 60,
|
1031
|
+
bottom: 120,
|
1032
|
+
left: 60
|
1033
|
+
},
|
1034
|
+
highlightTarget: "series"
|
1035
|
+
},
|
1036
|
+
allPluginParams: {
|
1037
|
+
...s,
|
1038
|
+
...t,
|
1039
|
+
MultiGridLegend: {
|
1040
|
+
position: "bottom",
|
1041
|
+
justify: "center",
|
1042
|
+
padding: 14,
|
1043
|
+
gridList: [
|
1044
|
+
{},
|
1045
|
+
{
|
1046
|
+
listRectHeight: 2
|
1047
|
+
}
|
1048
|
+
]
|
1049
|
+
}
|
233
1050
|
}
|
234
1051
|
}, j = {
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
1052
|
+
name: "PRESET_MULTI_GRID_DIVERGING",
|
1053
|
+
description: "雙向折線圖",
|
1054
|
+
chartParams: {
|
1055
|
+
padding: {
|
1056
|
+
top: 60,
|
1057
|
+
right: 60,
|
1058
|
+
bottom: 120,
|
1059
|
+
left: 60
|
1060
|
+
}
|
1061
|
+
},
|
1062
|
+
dataFormatter: {
|
1063
|
+
gridList: [
|
1064
|
+
// 第一個grid
|
1065
|
+
{
|
1066
|
+
groupAxis: {
|
1067
|
+
position: "right"
|
1068
|
+
},
|
1069
|
+
valueAxis: {
|
1070
|
+
position: "bottom"
|
1071
|
+
}
|
1072
|
+
},
|
1073
|
+
// 第二個grid
|
1074
|
+
{
|
1075
|
+
groupAxis: {
|
1076
|
+
position: "left"
|
1077
|
+
},
|
1078
|
+
valueAxis: {
|
1079
|
+
position: "bottom"
|
1080
|
+
}
|
1081
|
+
}
|
1082
|
+
],
|
1083
|
+
// 設定排版方式
|
1084
|
+
container: {
|
1085
|
+
gap: 200,
|
1086
|
+
rowAmount: 1,
|
1087
|
+
columnAmount: 2
|
1088
|
+
},
|
1089
|
+
separateGrid: !0
|
1090
|
+
// 將兩個grid拆分
|
1091
|
+
},
|
1092
|
+
allPluginParams: {
|
1093
|
+
...t,
|
1094
|
+
MultiGroupAxis: {
|
1095
|
+
tickPadding: 60,
|
1096
|
+
// 加長間距
|
1097
|
+
gridIndexes: [0]
|
1098
|
+
// 只顯示一個
|
1099
|
+
},
|
1100
|
+
MultiValueAxis: {
|
1101
|
+
gridIndexes: [0, 1]
|
1102
|
+
},
|
1103
|
+
MultiValueStackAxis: {
|
1104
|
+
gridIndexes: [0, 1]
|
1105
|
+
},
|
1106
|
+
MultiBars: {
|
1107
|
+
gridIndexes: [0, 1]
|
1108
|
+
},
|
1109
|
+
MultiBarStack: {
|
1110
|
+
gridIndexes: [0, 1]
|
1111
|
+
},
|
1112
|
+
MultiBarsTriangle: {
|
1113
|
+
gridIndexes: [0, 1]
|
1114
|
+
},
|
1115
|
+
MultiLines: {
|
1116
|
+
gridIndexes: [0, 1]
|
1117
|
+
},
|
1118
|
+
MultiLineAreas: {
|
1119
|
+
gridIndexes: [0, 1]
|
1120
|
+
},
|
1121
|
+
MultiDots: {
|
1122
|
+
gridIndexes: [0, 1]
|
1123
|
+
},
|
1124
|
+
MultiGridLegend: {
|
1125
|
+
position: "bottom",
|
1126
|
+
justify: "center",
|
1127
|
+
padding: 14
|
1128
|
+
}
|
243
1129
|
}
|
244
1130
|
}, W = {
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
1131
|
+
name: "PRESET_MULTI_GRID_ROUND_STYLE",
|
1132
|
+
description: "MultiGrid圓弧風格",
|
1133
|
+
chartParams: {
|
1134
|
+
padding: {
|
1135
|
+
top: 60,
|
1136
|
+
right: 60,
|
1137
|
+
bottom: 120,
|
1138
|
+
left: 60
|
1139
|
+
},
|
1140
|
+
highlightTarget: "series"
|
1141
|
+
},
|
1142
|
+
allPluginParams: {
|
1143
|
+
...t,
|
1144
|
+
MultiBars: {
|
1145
|
+
barWidth: 0,
|
1146
|
+
barPadding: 1,
|
1147
|
+
barGroupPadding: 10,
|
1148
|
+
barRadius: !0
|
1149
|
+
},
|
1150
|
+
MultiBarStack: {},
|
1151
|
+
MultiDots: {},
|
1152
|
+
MultiGridLegend: {
|
1153
|
+
position: "bottom",
|
1154
|
+
justify: "center",
|
1155
|
+
padding: 14,
|
1156
|
+
gridList: [
|
1157
|
+
{
|
1158
|
+
listRectRadius: 7
|
1159
|
+
},
|
1160
|
+
{
|
1161
|
+
listRectHeight: 2
|
1162
|
+
}
|
1163
|
+
]
|
1164
|
+
},
|
1165
|
+
MultiGroupAxis: {},
|
1166
|
+
MultiLineAreas: {},
|
1167
|
+
MultiLines: {
|
1168
|
+
lineCurve: "curveMonotoneX",
|
1169
|
+
lineWidth: 3
|
1170
|
+
},
|
1171
|
+
MultiValueAxis: {},
|
1172
|
+
MultiValueStackAxis: {},
|
1173
|
+
OverlappingValueAxes: {},
|
1174
|
+
OverlappingValueStackAxes: {}
|
254
1175
|
}
|
255
|
-
},
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
1176
|
+
}, X = {
|
1177
|
+
name: "PRESET_MULTI_GRID_SEPARATE_GRID",
|
1178
|
+
description: "2組Grid圖表",
|
1179
|
+
chartParams: {
|
1180
|
+
padding: {
|
1181
|
+
top: 60,
|
1182
|
+
right: 60,
|
1183
|
+
bottom: 160,
|
1184
|
+
left: 60
|
1185
|
+
}
|
1186
|
+
},
|
1187
|
+
dataFormatter: {
|
1188
|
+
separateGrid: !0
|
1189
|
+
},
|
1190
|
+
allPluginParams: {
|
1191
|
+
...t,
|
1192
|
+
MultiGroupAxis: {
|
1193
|
+
tickTextRotate: -30,
|
1194
|
+
gridIndexes: "all"
|
1195
|
+
},
|
1196
|
+
MultiValueAxis: {
|
1197
|
+
gridIndexes: "all"
|
1198
|
+
},
|
1199
|
+
MultiValueStackAxis: {
|
1200
|
+
gridIndexes: "all"
|
1201
|
+
},
|
1202
|
+
MultiBars: {
|
1203
|
+
gridIndexes: "all"
|
1204
|
+
},
|
1205
|
+
MultiBarStack: {
|
1206
|
+
gridIndexes: "all"
|
1207
|
+
},
|
1208
|
+
MultiBarsTriangle: {
|
1209
|
+
gridIndexes: "all"
|
1210
|
+
},
|
1211
|
+
MultiLines: {
|
1212
|
+
gridIndexes: "all"
|
1213
|
+
},
|
1214
|
+
MultiLineAreas: {
|
1215
|
+
gridIndexes: "all"
|
1216
|
+
},
|
1217
|
+
MultiDots: {
|
1218
|
+
gridIndexes: "all"
|
1219
|
+
},
|
1220
|
+
MultiGridLegend: {
|
1221
|
+
position: "bottom",
|
1222
|
+
justify: "center",
|
1223
|
+
padding: 14
|
1224
|
+
}
|
264
1225
|
}
|
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
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
},
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
},
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
}
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
}
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
}
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
}
|
1226
|
+
}, Z = {
|
1227
|
+
name: "PRESET_MULTI_LINE_AREAS_SEPARATE_GRID",
|
1228
|
+
description: "2組區域圖表",
|
1229
|
+
chartParams: {
|
1230
|
+
padding: {
|
1231
|
+
top: 60,
|
1232
|
+
right: 60,
|
1233
|
+
bottom: 160,
|
1234
|
+
left: 60
|
1235
|
+
}
|
1236
|
+
},
|
1237
|
+
dataFormatter: {
|
1238
|
+
gridList: [
|
1239
|
+
{
|
1240
|
+
// slotIndex: 0
|
1241
|
+
groupAxis: {
|
1242
|
+
scalePadding: 0
|
1243
|
+
}
|
1244
|
+
},
|
1245
|
+
{
|
1246
|
+
// slotIndex: 1,
|
1247
|
+
groupAxis: {
|
1248
|
+
scalePadding: 0
|
1249
|
+
}
|
1250
|
+
}
|
1251
|
+
],
|
1252
|
+
separateGrid: !0
|
1253
|
+
// container: {
|
1254
|
+
// rowAmount: 1,
|
1255
|
+
// columnAmount: 2,
|
1256
|
+
// }
|
1257
|
+
},
|
1258
|
+
allPluginParams: {
|
1259
|
+
...t,
|
1260
|
+
MultiGroupAxis: {
|
1261
|
+
tickTextRotate: -30,
|
1262
|
+
gridIndexes: "all"
|
1263
|
+
},
|
1264
|
+
MultiValueAxis: {
|
1265
|
+
gridIndexes: "all"
|
1266
|
+
},
|
1267
|
+
MultiValueStackAxis: {
|
1268
|
+
gridIndexes: "all"
|
1269
|
+
},
|
1270
|
+
MultiBars: {
|
1271
|
+
gridIndexes: "all"
|
1272
|
+
},
|
1273
|
+
MultiBarStack: {
|
1274
|
+
gridIndexes: "all"
|
1275
|
+
},
|
1276
|
+
MultiBarsTriangle: {
|
1277
|
+
gridIndexes: "all"
|
1278
|
+
},
|
1279
|
+
MultiLines: {
|
1280
|
+
gridIndexes: "all"
|
1281
|
+
},
|
1282
|
+
MultiLineAreas: {
|
1283
|
+
gridIndexes: "all"
|
1284
|
+
},
|
1285
|
+
MultiDots: {
|
1286
|
+
gridIndexes: "all"
|
1287
|
+
},
|
1288
|
+
MultiGridLegend: {
|
1289
|
+
position: "bottom",
|
1290
|
+
justify: "center",
|
1291
|
+
padding: 14,
|
1292
|
+
gridList: [
|
1293
|
+
{
|
1294
|
+
listRectHeight: 2
|
1295
|
+
},
|
1296
|
+
{
|
1297
|
+
listRectHeight: 2
|
1298
|
+
},
|
1299
|
+
{
|
1300
|
+
listRectHeight: 2
|
1301
|
+
},
|
1302
|
+
{
|
1303
|
+
listRectHeight: 2
|
1304
|
+
},
|
1305
|
+
{
|
1306
|
+
listRectHeight: 2
|
1307
|
+
},
|
1308
|
+
{
|
1309
|
+
listRectHeight: 2
|
1310
|
+
},
|
1311
|
+
{
|
1312
|
+
listRectHeight: 2
|
1313
|
+
},
|
1314
|
+
{
|
1315
|
+
listRectHeight: 2
|
1316
|
+
}
|
1317
|
+
]
|
1318
|
+
}
|
1319
|
+
}
|
1320
|
+
}, Y = {
|
1321
|
+
name: "PRESET_MULTI_LINES_SEPARATE_GRID",
|
1322
|
+
description: "多組分開折線圖表",
|
1323
|
+
chartParams: {
|
1324
|
+
padding: {
|
1325
|
+
top: 60,
|
1326
|
+
right: 60,
|
1327
|
+
bottom: 160,
|
1328
|
+
left: 60
|
1329
|
+
}
|
1330
|
+
},
|
1331
|
+
dataFormatter: {
|
1332
|
+
separateGrid: !0
|
1333
|
+
},
|
1334
|
+
allPluginParams: {
|
1335
|
+
...t,
|
1336
|
+
MultiGroupAxis: {
|
1337
|
+
tickTextRotate: -30,
|
1338
|
+
gridIndexes: "all"
|
1339
|
+
},
|
1340
|
+
MultiValueAxis: {
|
1341
|
+
gridIndexes: "all"
|
1342
|
+
},
|
1343
|
+
MultiValueStackAxis: {
|
1344
|
+
gridIndexes: "all"
|
1345
|
+
},
|
1346
|
+
MultiBars: {
|
1347
|
+
gridIndexes: "all"
|
1348
|
+
},
|
1349
|
+
MultiBarStack: {
|
1350
|
+
gridIndexes: "all"
|
1351
|
+
},
|
1352
|
+
MultiBarsTriangle: {
|
1353
|
+
gridIndexes: "all"
|
1354
|
+
},
|
1355
|
+
MultiLines: {
|
1356
|
+
gridIndexes: "all"
|
1357
|
+
},
|
1358
|
+
MultiLineAreas: {
|
1359
|
+
gridIndexes: "all"
|
1360
|
+
},
|
1361
|
+
MultiDots: {
|
1362
|
+
gridIndexes: "all"
|
1363
|
+
},
|
1364
|
+
MultiGridLegend: {
|
1365
|
+
position: "bottom",
|
1366
|
+
justify: "center",
|
1367
|
+
padding: 14,
|
1368
|
+
gridList: [
|
1369
|
+
{
|
1370
|
+
listRectHeight: 2
|
1371
|
+
},
|
1372
|
+
{
|
1373
|
+
listRectHeight: 2
|
1374
|
+
},
|
1375
|
+
{
|
1376
|
+
listRectHeight: 2
|
1377
|
+
},
|
1378
|
+
{
|
1379
|
+
listRectHeight: 2
|
1380
|
+
},
|
1381
|
+
{
|
1382
|
+
listRectHeight: 2
|
1383
|
+
},
|
1384
|
+
{
|
1385
|
+
listRectHeight: 2
|
1386
|
+
},
|
1387
|
+
{
|
1388
|
+
listRectHeight: 2
|
1389
|
+
},
|
1390
|
+
{
|
1391
|
+
listRectHeight: 2
|
1392
|
+
}
|
1393
|
+
]
|
1394
|
+
}
|
1395
|
+
}
|
1396
|
+
}, w = {
|
1397
|
+
name: "PRESET_TREE_BASIC",
|
1398
|
+
description: "基本Tree參數",
|
1399
|
+
chartParams: {
|
1400
|
+
padding: {
|
1401
|
+
top: 40,
|
1402
|
+
right: 40,
|
1403
|
+
bottom: 60,
|
1404
|
+
left: 40
|
1405
|
+
}
|
1406
|
+
},
|
1407
|
+
allPluginParams: {
|
1408
|
+
...t,
|
1409
|
+
TreeMap: {},
|
1410
|
+
TreeLegend: {
|
1411
|
+
position: "bottom",
|
1412
|
+
justify: "center",
|
1413
|
+
padding: 14
|
1414
|
+
}
|
1415
|
+
}
|
1416
|
+
};
|
420
1417
|
export {
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
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,
|
1431
|
+
U as PRESET_LINES_HIGHLIGHT_GROUP_DOTS,
|
1432
|
+
V as PRESET_LINES_HORIZONTAL,
|
1433
|
+
y as PRESET_LINES_LOOSE_TICKS,
|
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,
|
1439
|
+
D as PRESET_LINE_AREAS_HORIZONTAL,
|
1440
|
+
B as PRESET_LINE_AREAS_LOOSE_TICKS,
|
1441
|
+
f as PRESET_LINE_AREAS_ROTATE_AXIS_LABEL,
|
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,
|
1454
|
+
u as PRESET_ROSE_SCALING_BY_RADIUS,
|
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
|
439
1460
|
};
|