@orbcharts/presets-basic 3.0.0-alpha.20 → 3.0.0-alpha.22

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