@orbcharts/presets-basic 3.0.0-alpha.11 → 3.0.0-alpha.13
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +200 -200
- package/dist/orbcharts-presets-basic.es.js +464 -221
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/gridDataFormatterFiles/DF_LINE_AREAS_2_SERIES_SLOT.d.ts +3 -0
- package/dist/src/gridDataFormatterFiles/DF_LINE_AREAS_3_SERIES_SLOT.d.ts +3 -0
- package/dist/src/gridDataFormatterFiles/DF_LINE_AREAS_4_SERIES_SLOT.d.ts +3 -0
- package/dist/src/gridDataFormatterFiles/index.d.ts +3 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_2_GRID_SLOT.d.ts +3 -0
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_3_GRID_SLOT.d.ts +3 -0
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_4_GRID_SLOT.d.ts +3 -0
- package/dist/src/multiGridDataFormatterFiles/index.d.ts +3 -0
- package/dist/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_2_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_3_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_4_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiDots/index.d.ts +3 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_2_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_3_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_4_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_CURVE.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLineAreas/index.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/index.d.ts +2 -0
- package/package.json +43 -43
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_LEFT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +13 -13
- package/src/chartParamsFiles/index.ts +10 -10
- package/src/createPreset.ts +87 -87
- package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +15 -15
- package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +15 -15
- package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +15 -15
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +22 -22
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.ts +17 -17
- package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +14 -14
- package/src/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.ts +13 -13
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_2_SERIES_SLOT.ts +19 -0
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_3_SERIES_SLOT.ts +19 -0
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_4_SERIES_SLOT.ts +19 -0
- package/src/gridDataFormatterFiles/index.ts +10 -7
- package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +14 -14
- package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +14 -14
- package/src/gridPluginParamsFiles/Bars/index.ts +1 -1
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +12 -12
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +14 -14
- package/src/gridPluginParamsFiles/Dots/index.ts +1 -1
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +13 -13
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +14 -14
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +14 -14
- package/src/gridPluginParamsFiles/GridLegend/index.ts +2 -2
- package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +12 -12
- package/src/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.ts +11 -11
- package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +12 -12
- package/src/gridPluginParamsFiles/index.ts +6 -6
- package/src/index.ts +290 -253
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +20 -20
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +23 -23
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +26 -26
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_2_GRID_SLOT.ts +27 -0
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_3_GRID_SLOT.ts +33 -0
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_4_GRID_SLOT.ts +39 -0
- package/src/multiGridDataFormatterFiles/index.ts +6 -3
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +14 -14
- package/src/multiGridPluginParamsFiles/MultiBars/index.ts +5 -5
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +2 -2
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_2_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_3_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_4_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiDots/index.ts +3 -0
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +13 -13
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +27 -27
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +20 -20
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +21 -21
- package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_2_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_3_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_4_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_CURVE.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiLineAreas/index.ts +4 -0
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiLines/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/index.ts +8 -6
- package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +11 -11
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +12 -12
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +14 -14
- package/src/seriesPluginParamsFiles/Pie/index.ts +1 -1
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +13 -13
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +13 -13
- package/src/seriesPluginParamsFiles/PieLabels/index.ts +1 -1
- package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +11 -11
- package/src/seriesPluginParamsFiles/index.ts +3 -3
- package/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.ts +13 -13
- package/src/types.ts +61 -61
- package/tsconfig.dev.json +17 -17
- package/tsconfig.json +13 -13
- package/tsconfig.prod.json +13 -13
- package/vite.config.js +44 -44
package/src/index.ts
CHANGED
@@ -1,254 +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
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
allPluginParamsIds: ['
|
211
|
-
description: '
|
212
|
-
})
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
export const
|
226
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
227
|
-
dataFormatterId: '
|
228
|
-
allPluginParamsIds: ['
|
229
|
-
description: '
|
230
|
-
})
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
})
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
})
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
allPluginParamsIds: ['
|
253
|
-
description: '
|
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參數'
|
254
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
|
}
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import type { DataFormatterFile } from '../types'
|
2
|
-
|
3
|
-
export const DF_MULTI_GRID_3_GRID_SLOT: DataFormatterFile<'multiGrid'> = {
|
4
|
-
id: 'DF_MULTI_GRID_3_GRID_SLOT',
|
5
|
-
chartType: 'multiGrid',
|
6
|
-
description: '3個Grid Slot',
|
7
|
-
data: {
|
8
|
-
gridList: [
|
9
|
-
{
|
10
|
-
slotIndex: 0
|
11
|
-
},
|
12
|
-
{
|
13
|
-
slotIndex: 1
|
14
|
-
},
|
15
|
-
{
|
16
|
-
slotIndex: 2
|
17
|
-
}
|
18
|
-
],
|
19
|
-
container: {
|
20
|
-
rowAmount: 1,
|
21
|
-
columnAmount: 3,
|
22
|
-
}
|
23
|
-
}
|
1
|
+
import type { DataFormatterFile } from '../types'
|
2
|
+
|
3
|
+
export const DF_MULTI_GRID_3_GRID_SLOT: DataFormatterFile<'multiGrid'> = {
|
4
|
+
id: 'DF_MULTI_GRID_3_GRID_SLOT',
|
5
|
+
chartType: 'multiGrid',
|
6
|
+
description: '3個Grid Slot',
|
7
|
+
data: {
|
8
|
+
gridList: [
|
9
|
+
{
|
10
|
+
slotIndex: 0
|
11
|
+
},
|
12
|
+
{
|
13
|
+
slotIndex: 1
|
14
|
+
},
|
15
|
+
{
|
16
|
+
slotIndex: 2
|
17
|
+
}
|
18
|
+
],
|
19
|
+
container: {
|
20
|
+
rowAmount: 1,
|
21
|
+
columnAmount: 3,
|
22
|
+
}
|
23
|
+
}
|
24
24
|
}
|