@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.
Files changed (204) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +1383 -362
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.d.ts +4 -0
  5. package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.d.ts +4 -0
  6. package/dist/src/grid/PRESET_BARS_ROUND.d.ts +4 -0
  7. package/dist/src/grid/PRESET_BARS_THIN.d.ts +4 -0
  8. package/dist/src/grid/PRESET_GRID_BASIC.d.ts +4 -0
  9. package/dist/src/grid/PRESET_GRID_HORIZONTAL.d.ts +4 -0
  10. package/dist/src/grid/PRESET_GRID_PN_SCALE.d.ts +4 -0
  11. package/dist/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.d.ts +4 -0
  12. package/dist/src/grid/PRESET_GRID_SEPARATE_SERIES.d.ts +4 -0
  13. package/dist/src/grid/PRESET_LINES_BASIC.d.ts +4 -0
  14. package/dist/src/grid/PRESET_LINES_CURVE.d.ts +4 -0
  15. package/dist/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
  16. package/dist/src/grid/PRESET_LINES_HORIZONTAL.d.ts +4 -0
  17. package/dist/src/grid/PRESET_LINES_LOOSE_TICKS.d.ts +4 -0
  18. package/dist/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.d.ts +4 -0
  19. package/dist/src/grid/PRESET_LINES_WITH_SOLID_DOTS.d.ts +4 -0
  20. package/dist/src/grid/PRESET_LINE_AREAS_BASIC.d.ts +4 -0
  21. package/dist/src/grid/PRESET_LINE_AREAS_CURVE.d.ts +4 -0
  22. package/dist/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
  23. package/dist/src/grid/PRESET_LINE_AREAS_HORIZONTAL.d.ts +4 -0
  24. package/dist/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.d.ts +4 -0
  25. package/dist/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.d.ts +4 -0
  26. package/dist/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.d.ts +4 -0
  27. package/dist/src/grid/index.d.ts +23 -0
  28. package/dist/src/index.d.ts +4 -18
  29. package/dist/src/multiGrid/PRESET_MULTI_GRID_BASIC.d.ts +4 -0
  30. package/dist/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.d.ts +4 -0
  31. package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.d.ts +6 -0
  32. package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.d.ts +4 -0
  33. package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.d.ts +4 -0
  34. package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +4 -0
  35. package/dist/src/multiGrid/index.d.ts +6 -0
  36. package/dist/src/params.d.ts +7 -0
  37. package/dist/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
  38. package/dist/src/series/PRESET_BUBBLES_SEPARATE_SERIES.d.ts +4 -0
  39. package/dist/src/series/PRESET_PIE_BASIC.d.ts +4 -0
  40. package/dist/src/series/PRESET_PIE_DONUT.d.ts +4 -0
  41. package/dist/src/series/PRESET_PIE_HALF_DONUT.d.ts +4 -0
  42. package/dist/src/series/PRESET_PIE_WITH_INNER_LABELS.d.ts +4 -0
  43. package/dist/src/series/PRESET_ROSE_BASIC.d.ts +4 -0
  44. package/dist/src/series/PRESET_ROSE_SCALING_BY_RADIUS.d.ts +4 -0
  45. package/dist/src/series/PRESET_SERIES_BASIC.d.ts +4 -0
  46. package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES.d.ts +4 -0
  47. package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.d.ts +4 -0
  48. package/dist/src/series/PRESET_SERIES_SUM_SERIES.d.ts +4 -0
  49. package/dist/src/series/index.d.ts +12 -0
  50. package/dist/src/tree/PRESET_TREE_BASIC.d.ts +4 -0
  51. package/dist/src/tree/index.d.ts +1 -0
  52. package/dist/src/types.d.ts +116 -37
  53. package/dist/vite.config.d.ts +1 -1
  54. package/package.json +43 -43
  55. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -0
  56. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -0
  57. package/src/grid/PRESET_BARS_ROUND.ts +46 -0
  58. package/src/grid/PRESET_BARS_THIN.ts +43 -0
  59. package/src/grid/PRESET_GRID_BASIC.ts +25 -0
  60. package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -0
  61. package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -0
  62. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -0
  63. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -0
  64. package/src/grid/PRESET_LINES_BASIC.ts +44 -0
  65. package/src/grid/PRESET_LINES_CURVE.ts +47 -0
  66. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -0
  67. package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -0
  68. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -0
  69. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -0
  70. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -0
  71. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -0
  72. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -0
  73. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -0
  74. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -0
  75. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -0
  76. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -0
  77. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -0
  78. package/src/grid/index.ts +23 -0
  79. package/src/index.ts +4 -133
  80. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -0
  81. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -0
  82. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -0
  83. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -0
  84. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -0
  85. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -0
  86. package/src/multiGrid/index.ts +6 -0
  87. package/src/params.ts +57 -0
  88. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -0
  89. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -0
  90. package/src/series/PRESET_PIE_BASIC.ts +19 -0
  91. package/src/series/PRESET_PIE_DONUT.ts +27 -0
  92. package/src/series/PRESET_PIE_HALF_DONUT.ts +40 -0
  93. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +28 -0
  94. package/src/series/PRESET_ROSE_BASIC.ts +19 -0
  95. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +27 -0
  96. package/src/series/PRESET_SERIES_BASIC.ts +15 -0
  97. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -0
  98. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -0
  99. package/src/series/PRESET_SERIES_SUM_SERIES.ts +17 -0
  100. package/src/series/index.ts +13 -0
  101. package/src/tree/PRESET_TREE_BASIC.ts +25 -0
  102. package/src/tree/index.ts +1 -0
  103. package/src/types.ts +242 -58
  104. package/tsconfig.base.json +14 -0
  105. package/tsconfig.json +2 -13
  106. package/vite.config.js +22 -44
  107. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +0 -3
  108. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  109. package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.d.ts +0 -3
  110. package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  111. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING.d.ts +0 -3
  112. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.d.ts +0 -3
  113. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  114. package/dist/src/chartParamsFiles/CP_LEFT_PADDING.d.ts +0 -3
  115. package/dist/src/chartParamsFiles/CP_RIGHT_PADDING.d.ts +0 -3
  116. package/dist/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +0 -3
  117. package/dist/src/chartParamsFiles/index.d.ts +0 -10
  118. package/dist/src/createPreset.d.ts +0 -9
  119. package/dist/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.d.ts +0 -3
  120. package/dist/src/gridDataFormatterFiles/index.d.ts +0 -1
  121. package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.d.ts +0 -4
  122. package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.d.ts +0 -4
  123. package/dist/src/gridPluginParamsFiles/Bars/index.d.ts +0 -2
  124. package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.d.ts +0 -4
  125. package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.d.ts +0 -4
  126. package/dist/src/gridPluginParamsFiles/Dots/index.d.ts +0 -2
  127. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.d.ts +0 -4
  128. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
  129. package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +0 -2
  130. package/dist/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.d.ts +0 -4
  131. package/dist/src/gridPluginParamsFiles/GroupAxis/index.d.ts +0 -1
  132. package/dist/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.d.ts +0 -4
  133. package/dist/src/gridPluginParamsFiles/Lines/index.d.ts +0 -1
  134. package/dist/src/gridPluginParamsFiles/index.d.ts +0 -5
  135. package/dist/src/multiGridDataFormatterFiles/index.d.ts +0 -1
  136. package/dist/src/multiGridPluginParamsFiles/index.d.ts +0 -1
  137. package/dist/src/multiValueDataFormatterFiles/index.d.ts +0 -1
  138. package/dist/src/multiValuePluginParamsFiles/index.d.ts +0 -1
  139. package/dist/src/relationshipDataFormatterFiles/index.d.ts +0 -1
  140. package/dist/src/relationshipPluginParamsFiles/index.d.ts +0 -1
  141. package/dist/src/seriesDataFormatterFiles/index.d.ts +0 -1
  142. package/dist/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.d.ts +0 -4
  143. package/dist/src/seriesPluginParamsFiles/Bubbles/index.d.ts +0 -1
  144. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.d.ts +0 -0
  145. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.d.ts +0 -4
  146. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.d.ts +0 -4
  147. package/dist/src/seriesPluginParamsFiles/Pie/index.d.ts +0 -2
  148. package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.d.ts +0 -4
  149. package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.d.ts +0 -4
  150. package/dist/src/seriesPluginParamsFiles/PieLabels/index.d.ts +0 -2
  151. package/dist/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.d.ts +0 -4
  152. package/dist/src/seriesPluginParamsFiles/SeriesLegend/index.d.ts +0 -1
  153. package/dist/src/seriesPluginParamsFiles/index.d.ts +0 -4
  154. package/dist/src/treeDataFormatterFiles/index.d.ts +0 -1
  155. package/dist/src/treePluginParamsFiles/index.d.ts +0 -1
  156. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +0 -14
  157. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  158. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +0 -14
  159. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  160. package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +0 -14
  161. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +0 -15
  162. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  163. package/src/chartParamsFiles/CP_LEFT_PADDING.ts +0 -14
  164. package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +0 -14
  165. package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +0 -14
  166. package/src/chartParamsFiles/index.ts +0 -10
  167. package/src/createPreset.ts +0 -88
  168. package/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.ts +0 -16
  169. package/src/gridDataFormatterFiles/index.ts +0 -1
  170. package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +0 -15
  171. package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +0 -14
  172. package/src/gridPluginParamsFiles/Bars/index.ts +0 -2
  173. package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -12
  174. package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +0 -14
  175. package/src/gridPluginParamsFiles/Dots/index.ts +0 -2
  176. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +0 -14
  177. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -15
  178. package/src/gridPluginParamsFiles/GridLegend/index.ts +0 -2
  179. package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +0 -12
  180. package/src/gridPluginParamsFiles/GroupAxis/index.ts +0 -1
  181. package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +0 -13
  182. package/src/gridPluginParamsFiles/Lines/index.ts +0 -1
  183. package/src/gridPluginParamsFiles/index.ts +0 -6
  184. package/src/multiGridDataFormatterFiles/index.ts +0 -1
  185. package/src/multiGridPluginParamsFiles/index.ts +0 -1
  186. package/src/multiValueDataFormatterFiles/index.ts +0 -1
  187. package/src/multiValuePluginParamsFiles/index.ts +0 -1
  188. package/src/relationshipDataFormatterFiles/index.ts +0 -1
  189. package/src/relationshipPluginParamsFiles/index.ts +0 -1
  190. package/src/seriesDataFormatterFiles/index.ts +0 -1
  191. package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +0 -12
  192. package/src/seriesPluginParamsFiles/Bubbles/index.ts +0 -1
  193. package/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.ts +0 -0
  194. package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +0 -12
  195. package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +0 -14
  196. package/src/seriesPluginParamsFiles/Pie/index.ts +0 -2
  197. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +0 -13
  198. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +0 -13
  199. package/src/seriesPluginParamsFiles/PieLabels/index.ts +0 -2
  200. package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +0 -12
  201. package/src/seriesPluginParamsFiles/SeriesLegend/index.ts +0 -1
  202. package/src/seriesPluginParamsFiles/index.ts +0 -4
  203. package/src/treeDataFormatterFiles/index.ts +0 -1
  204. 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
- id: "CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT",
3
- description: "間距下面及左邊留空",
4
- data: {
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: 120
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
- highlightTarget: "series"
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
- }, O = {
14
- id: "CP_BOTTOM_AND_LEFT_PADDING",
15
- description: "間距下面及左邊留空",
16
- data: {
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: 120
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
- }, E = {
25
- id: "CP_BOTTOM_LONG_PADDING",
26
- description: "間距下面加長留空",
27
- data: {
342
+ }, m = {
343
+ name: "PRESET_BARS_ROUND",
344
+ description: "圓角長條圖",
345
+ chartParams: {
28
346
  padding: {
29
347
  top: 60,
30
348
  right: 60,
31
- bottom: 140,
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
- }, c = {
36
- id: "CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT",
37
- description: "間距下面加長留空及highlight系列",
38
- data: {
372
+ }, I = {
373
+ name: "PRESET_BARS_THIN",
374
+ description: "細長條圖",
375
+ chartParams: {
39
376
  padding: {
40
377
  top: 60,
41
378
  right: 60,
42
- bottom: 140,
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
- highlightTarget: "series"
390
+ GroupAxis: {},
391
+ ValueAxis: {},
392
+ GroupAux: {},
393
+ GridLegend: {
394
+ position: "bottom",
395
+ justify: "center",
396
+ padding: 14
397
+ }
46
398
  }
47
- }, D = {
48
- id: "CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT",
49
- description: "間距下面留空及highlight群組",
50
- data: {
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
- highlightTarget: "group"
502
+ GroupAxis: {
503
+ tickPadding: 15,
504
+ tickTextRotate: -30
505
+ },
506
+ GridLegend: {
507
+ position: "bottom",
508
+ justify: "center",
509
+ padding: 14
510
+ }
58
511
  }
59
- }, N = {
60
- id: "CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT",
61
- description: "間距下面留空及highlight系列",
62
- data: {
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
- }, S = {
72
- id: "CP_BOTTOM_PADDING",
73
- description: "間距下面留空",
74
- data: {
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
- }, p = {
83
- id: "CP_LEFT_PADDING",
84
- description: "間距右邊留空",
85
- data: {
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: 60,
90
- left: 120
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
- }, G = {
94
- id: "CP_TOP_AND_NO_BOTTOM_PADDING",
95
- description: "間距上面留空下面不留空",
96
- data: {
656
+ }, D = {
657
+ name: "PRESET_LINE_AREAS_HORIZONTAL",
658
+ description: "橫向折線圖",
659
+ chartParams: {
97
660
  padding: {
98
- top: 140,
99
- right: 120,
100
- bottom: 0,
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
- }, g = {
105
- id: "CP_RIGHT_PADDING",
106
- description: "間距右邊留空",
107
- data: {
730
+ }, f = {
731
+ name: "PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",
732
+ description: "傾斜標籤",
733
+ chartParams: {
108
734
  padding: {
109
735
  top: 60,
110
- right: 120,
111
- bottom: 60,
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
- }, L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
116
- __proto__: null,
117
- CP_BOTTOM_AND_LEFT_PADDING: O,
118
- CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT: l,
119
- CP_BOTTOM_LONG_PADDING: E,
120
- CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT: c,
121
- CP_BOTTOM_PADDING: S,
122
- CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT: D,
123
- CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT: N,
124
- CP_LEFT_PADDING: p,
125
- CP_RIGHT_PADDING: g,
126
- CP_TOP_AND_NO_BOTTOM_PADDING: G
127
- }, Symbol.toStringTag, { value: "Module" })), m = {}, A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
128
- __proto__: null,
129
- temp: m
130
- }, Symbol.toStringTag, { value: "Module" })), u = {
131
- id: "PP_BUBBLES_SCALING_BY_RADIUS",
132
- chartType: "series",
133
- pluginName: "Bubbles",
134
- description: "以半徑尺寸為比例的泡泡圖",
135
- data: {
136
- bubbleScaleType: "radius"
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
- }, R = {
139
- id: "PP_PIE_DONUT",
140
- chartType: "series",
141
- pluginName: "Pie",
142
- description: "甜甜圈圖",
143
- data: {
144
- innerRadius: 0.5
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
- }, B = {
147
- id: "PP_PIE_HALF_DONUT",
148
- chartType: "series",
149
- pluginName: "Pie",
150
- description: "半圓甜甜圈圖",
151
- data: {
152
- innerRadius: 0.5,
153
- startAngle: -Math.PI / 2,
154
- endAngle: Math.PI / 2
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
- }, H = {
157
- id: "PP_PIE_LABELS_HALF_ANGLE",
158
- chartType: "series",
159
- pluginName: "PieLabels",
160
- description: "半圓甜甜圈資料標籤",
161
- data: {
162
- startAngle: -Math.PI / 2,
163
- endAngle: Math.PI / 2
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
- }, h = {
166
- id: "PP_PIE_LABELS_INNER",
167
- chartType: "series",
168
- pluginName: "PieLabels",
169
- description: "圖內資料標籤",
170
- data: {
171
- labelCentroid: 1.3,
172
- labelColorType: "primary"
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
- }, M = {
175
- id: "PP_SERIES_LEGEND_BOTTOM",
176
- chartType: "series",
177
- pluginName: "SeriesLegend",
178
- description: "圓型圖例列點",
179
- data: {
180
- listRectRadius: 7
181
- }
182
- }, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
183
- __proto__: null,
184
- PP_BUBBLES_SCALING_BY_RADIUS: u,
185
- PP_PIE_DONUT: R,
186
- PP_PIE_HALF_DONUT: B,
187
- PP_PIE_LABELS_HALF_ANGLE: H,
188
- PP_PIE_LABELS_INNER: h,
189
- PP_SERIES_LEGEND_ROUND: M
190
- }, Symbol.toStringTag, { value: "Module" })), C = {
191
- id: "DF_BOTTOM_VALUE_AXIS",
192
- chartType: "grid",
193
- description: "底部橫向資料圖軸",
194
- data: {
195
- valueAxis: {
196
- position: "bottom"
197
- },
198
- groupAxis: {
199
- position: "left"
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
- id: "PP_BARS_THIN",
218
- chartType: "grid",
219
- pluginName: "Bars",
220
- description: "圓角長條圖",
221
- data: {
222
- barWidth: 20,
223
- barPadding: 1,
224
- barGroupPadding: 10
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
- }, f = {
227
- id: "PP_DOTS_ONLY_SHOW_HIGHLIGHTED",
228
- chartType: "grid",
229
- pluginName: "Dots",
230
- description: "顯示highlight圓點",
231
- data: {
232
- onlyShowHighlighted: !1
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
- id: "PP_DOTS_SOLID",
236
- chartType: "grid",
237
- pluginName: "Dots",
238
- description: "實心圓點",
239
- data: {
240
- radius: 3,
241
- fillColorType: "series",
242
- onlyShowHighlighted: !1
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
- id: "PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST",
246
- chartType: "grid",
247
- pluginName: "GridLegend",
248
- description: "底部圖例及線條列點",
249
- data: {
250
- position: "bottom",
251
- justify: "center",
252
- padding: 14,
253
- listRectHeight: 2
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
- }, v = {
256
- id: "PP_GRID_LEGEND_BOTTOM",
257
- chartType: "grid",
258
- pluginName: "GridLegend",
259
- description: "底部圖例",
260
- data: {
261
- position: "bottom",
262
- justify: "center",
263
- padding: 14
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
- }, V = {
266
- id: "PP_GROUP_AXIS_ROTATE_LABEL",
267
- chartType: "grid",
268
- pluginName: "GroupAxis",
269
- description: "群組圖軸標籤文字傾斜",
270
- data: {
271
- tickTextRotate: 40
272
- }
273
- }, z = {
274
- id: "PP_LINES_CURVE",
275
- chartType: "grid",
276
- pluginName: "Lines",
277
- description: "圓弧折線圖",
278
- data: {
279
- lineCurve: "curveMonotoneX",
280
- lineWidth: 3
281
- }
282
- }, X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
283
- __proto__: null,
284
- PP_BARS_ROUND: y,
285
- PP_BARS_THIN: F,
286
- PP_DOTS_ONLY_SHOW_HIGHLIGHTED: f,
287
- PP_DOTS_SOLID: j,
288
- PP_GRID_LEGEND_BOTTOM: v,
289
- PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST: W,
290
- PP_GROUP_AXIS_ROTATE_LABEL: V,
291
- PP_LINES_CURVE: z
292
- }, Symbol.toStringTag, { value: "Module" })), $ = {}, Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
293
- __proto__: null,
294
- temp: $
295
- }, Symbol.toStringTag, { value: "Module" })), x = {}, Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
296
- __proto__: null,
297
- temp: x
298
- }, Symbol.toStringTag, { value: "Module" })), w = {}, k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
299
- __proto__: null,
300
- temp: w
301
- }, Symbol.toStringTag, { value: "Module" })), q = {}, J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
302
- __proto__: null,
303
- temp: q
304
- }, Symbol.toStringTag, { value: "Module" })), K = {}, Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
305
- __proto__: null,
306
- temp: K
307
- }, Symbol.toStringTag, { value: "Module" })), __ = {}, t_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
308
- __proto__: null,
309
- temp: __
310
- }, Symbol.toStringTag, { value: "Module" })), e_ = {}, a_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
311
- __proto__: null,
312
- temp: e_
313
- }, Symbol.toStringTag, { value: "Module" })), i_ = {}, P_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
314
- __proto__: null,
315
- temp: i_
316
- }, Symbol.toStringTag, { value: "Module" })), s = {
317
- series: A,
318
- grid: U,
319
- multiGrid: Y,
320
- multiValue: k,
321
- relationship: Q,
322
- tree: a_
323
- }, P = {
324
- series: b,
325
- grid: X,
326
- multiGrid: Z,
327
- multiValue: J,
328
- relationship: t_,
329
- tree: P_
330
- }, r = (t, e) => {
331
- const T = e.chartParamsId ? L[e.chartParamsId].data : void 0, n = s[t][e.dataFormatterId] ? s[t][e.dataFormatterId].data : void 0, d = e.allPluginParamsIds ? e.allPluginParamsIds.reduce((o, i) => {
332
- if (P[t][i]) {
333
- const I = P[t][i].pluginName;
334
- o[I] = P[t][i].data;
335
- }
336
- return o;
337
- }, {}) : void 0;
338
- return {
339
- chartParams: T,
340
- dataFormatter: n,
341
- allPluginParams: d
342
- };
343
- }, a = (t) => r("series", t), _ = (t) => r("grid", t), r_ = (t) => r("multiGrid", t), o_ = a({
344
- // chartParamsId: 'CP_RIGHT_PADDING',
345
- allPluginParamsIds: [],
346
- description: "基本Series參數"
347
- }), s_ = a({
348
- // chartParamsId: 'CP_RIGHT_PADDING',
349
- allPluginParamsIds: ["PP_BUBBLES_SCALING_BY_RADIUS", "PP_SERIES_LEGEND_ROUND"],
350
- description: "以半徑尺寸為比例的泡泡圖"
351
- }), T_ = a({
352
- // chartParamsId: 'CP_RIGHT_PADDING',
353
- allPluginParamsIds: ["PP_PIE_LABELS_INNER", "PP_SERIES_LEGEND_ROUND"],
354
- description: "圓餅圖及內部資料標籤"
355
- }), n_ = a({
356
- // chartParamsId: 'CP_RIGHT_PADDING',
357
- allPluginParamsIds: ["PP_PIE_DONUT", "PP_SERIES_LEGEND_ROUND"],
358
- description: "甜甜圈圖"
359
- }), d_ = a({
360
- chartParamsId: "CP_TOP_AND_NO_BOTTOM_PADDING",
361
- allPluginParamsIds: ["PP_PIE_HALF_DONUT", "PP_PIE_LABELS_HALF_ANGLE", "PP_SERIES_LEGEND_ROUND"],
362
- description: "半圓甜甜圈圖"
363
- }), I_ = _({
364
- chartParamsId: "CP_BOTTOM_PADDING",
365
- allPluginParamsIds: ["PP_GRID_LEGEND_BOTTOM"],
366
- description: "基本Grid參數"
367
- }), l_ = _({
368
- chartParamsId: "CP_BOTTOM_LONG_PADDING",
369
- allPluginParamsIds: ["PP_GROUP_AXIS_ROTATE_LABEL", "PP_GRID_LEGEND_BOTTOM"],
370
- description: "傾斜標籤"
371
- }), O_ = _({
372
- chartParamsId: "CP_BOTTOM_AND_LEFT_PADDING",
373
- dataFormatterId: "DF_BOTTOM_VALUE_AXIS",
374
- allPluginParamsIds: ["PP_GRID_LEGEND_BOTTOM"],
375
- description: "橫向圓角長條圖"
376
- }), E_ = _({
377
- chartParamsId: "CP_BOTTOM_PADDING",
378
- allPluginParamsIds: ["PP_BARS_ROUND", "PP_GRID_LEGEND_BOTTOM"],
379
- description: "圓角長條圖"
380
- }), c_ = _({
381
- chartParamsId: "CP_BOTTOM_AND_LEFT_PADDING",
382
- dataFormatterId: "DF_BOTTOM_VALUE_AXIS",
383
- allPluginParamsIds: ["PP_BARS_ROUND", "PP_GRID_LEGEND_BOTTOM"],
384
- description: "橫向圓角長條圖"
385
- }), D_ = _({
386
- chartParamsId: "CP_BOTTOM_PADDING",
387
- allPluginParamsIds: ["PP_BARS_THIN", "PP_GRID_LEGEND_BOTTOM"],
388
- description: "細長條圖"
389
- }), N_ = _({
390
- chartParamsId: "CP_BOTTOM_AND_LEFT_PADDING",
391
- dataFormatterId: "DF_BOTTOM_VALUE_AXIS",
392
- allPluginParamsIds: ["PP_BARS_ROUND", "PP_GRID_LEGEND_BOTTOM"],
393
- description: "橫向圓角長條圖"
394
- }), S_ = _({
395
- chartParamsId: "CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT",
396
- allPluginParamsIds: ["PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST"],
397
- description: "基本Grid參數"
398
- }), p_ = _({
399
- chartParamsId: "CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT",
400
- allPluginParamsIds: ["PP_GROUP_AXIS_ROTATE_LABEL", "PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST"],
401
- description: "傾斜標籤"
402
- }), G_ = _({
403
- chartParamsId: "CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT",
404
- dataFormatterId: "DF_BOTTOM_VALUE_AXIS",
405
- allPluginParamsIds: ["PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST"],
406
- description: "橫向圓角長條圖"
407
- }), g_ = _({
408
- chartParamsId: "CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT",
409
- allPluginParamsIds: ["PP_LINES_CURVE", "PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST"],
410
- description: "弧線折線圖"
411
- }), L_ = _({
412
- chartParamsId: "CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT",
413
- allPluginParamsIds: ["PP_DOTS_ONLY_SHOW_HIGHLIGHTED", "PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST"],
414
- description: "折線圖及Highlight Group圓點"
415
- }), m_ = r_({
416
- // chartParamsId: 'CP_BOTTOM_PADDING',
417
- allPluginParamsIds: [],
418
- description: "基本MultiGrid參數"
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
- c_ as PRESET_BARS_HORIZONTAL_AND_ROUND,
422
- N_ as PRESET_BARS_HORIZONTAL_AND_THIN,
423
- E_ as PRESET_BARS_ROUND,
424
- D_ as PRESET_BARS_THIN,
425
- s_ as PRESET_BUBBLES_SCALING_BY_RADIUS,
426
- I_ as PRESET_GRID_BASIC,
427
- O_ as PRESET_GRID_HORIZONTAL,
428
- l_ as PRESET_GRID_ROTATE_AXIS_LABEL,
429
- S_ as PRESET_LINES_BASIC,
430
- g_ as PRESET_LINES_CURVE,
431
- L_ as PRESET_LINES_HIGHLIGHT_GROUP_DOTS,
432
- G_ as PRESET_LINES_HORIZONTAL,
433
- p_ as PRESET_LINES_ROTATE_AXIS_LABEL,
434
- m_ as PRESET_MULTI_GRID_BASIC,
435
- n_ as PRESET_PIE_DONUT,
436
- d_ as PRESET_PIE_HALF_DONUT,
437
- T_ as PRESET_PIE_WITH_INNER_LABELS,
438
- o_ as PRESET_SERIES_BASIC
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
  };