@orbcharts/presets-basic 3.0.0-alpha.12 → 3.0.0-alpha.13

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