@orbcharts/presets-basic 3.0.0-beta.11 → 3.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orbcharts-presets-basic.es.js +1944 -642
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_SIMPLE.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_SIMPLE.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_SIMPLE.d.ts +4 -0
- package/dist/src/grid/index.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.d.ts +3 -1
- package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.d.ts +6 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_SIMPLE.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.d.ts +4 -0
- package/dist/src/multiGrid/index.d.ts +6 -0
- package/dist/src/multiValue/PRESET_MULTI_VALUE_SIMPLE.d.ts +4 -0
- package/dist/src/multiValue/PRESET_RACING_BARS_ALL_ITEMS.d.ts +4 -0
- package/dist/src/multiValue/PRESET_RACING_BARS_BASIC.d.ts +4 -0
- package/dist/src/multiValue/PRESET_RACING_BARS_FAST.d.ts +4 -0
- package/dist/src/multiValue/PRESET_RACING_BARS_FASTER.d.ts +4 -0
- package/dist/src/multiValue/PRESET_RACING_BARS_OUTSIDE_LABELS.d.ts +4 -0
- package/dist/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_RACING_BARS_SIMPLE.d.ts +4 -0
- package/dist/src/multiValue/PRESET_RACING_BARS_STOP.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_SIMPLE.d.ts +4 -0
- package/dist/src/multiValue/index.d.ts +12 -1
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_SIMPLE.d.ts +4 -0
- package/dist/src/relationship/index.d.ts +2 -0
- package/dist/src/series/PRESET_BUBBLES_SIMPLE.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_SIMPLE.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SIMPLE.d.ts +4 -0
- package/dist/src/series/index.d.ts +3 -0
- package/dist/src/tree/PRESET_TREE_MAP_SIMPLE.d.ts +4 -0
- package/dist/src/tree/index.d.ts +1 -0
- package/dist/src/types.d.ts +23 -17
- package/package.json +3 -3
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +11 -23
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +5 -12
- package/src/grid/PRESET_BARS_ROUND.ts +5 -4
- package/src/grid/PRESET_BARS_THIN.ts +5 -4
- package/src/grid/PRESET_GRID_BASIC.ts +5 -4
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +5 -4
- package/src/grid/PRESET_GRID_PN_SCALE.ts +5 -4
- package/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.ts +49 -0
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +5 -4
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +5 -4
- package/src/grid/PRESET_GRID_SIMPLE.ts +44 -0
- package/src/grid/PRESET_LINES_BASIC.ts +5 -8
- package/src/grid/PRESET_LINES_CURVE.ts +5 -8
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +5 -8
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +11 -22
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +5 -8
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +5 -8
- package/src/grid/PRESET_LINES_SIMPLE.ts +53 -0
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +5 -8
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +5 -4
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +5 -4
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +8 -13
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +12 -17
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +8 -13
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +8 -13
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +9 -15
- package/src/grid/PRESET_LINE_AREAS_SIMPLE.ts +57 -0
- package/src/grid/index.ts +4 -0
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +5 -9
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +6 -10
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.ts +101 -0
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +7 -10
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.ts +81 -0
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +6 -9
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.ts +84 -0
- package/src/multiGrid/PRESET_MULTI_GRID_SIMPLE.ts +60 -0
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +6 -7
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.ts +110 -0
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +6 -7
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.ts +113 -0
- package/src/multiGrid/index.ts +6 -0
- package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +6 -6
- package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +14 -6
- package/src/multiValue/PRESET_MULTI_VALUE_SIMPLE.ts +39 -0
- package/src/multiValue/PRESET_RACING_BARS_ALL_ITEMS.ts +44 -0
- package/src/multiValue/PRESET_RACING_BARS_BASIC.ts +43 -0
- package/src/multiValue/PRESET_RACING_BARS_FAST.ts +43 -0
- package/src/multiValue/PRESET_RACING_BARS_FASTER.ts +43 -0
- package/src/multiValue/PRESET_RACING_BARS_OUTSIDE_LABELS.ts +47 -0
- package/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.ts +60 -0
- package/src/multiValue/PRESET_RACING_BARS_SIMPLE.ts +43 -0
- package/src/multiValue/PRESET_RACING_BARS_STOP.ts +42 -0
- package/src/multiValue/PRESET_SCATTER_BASIC.ts +7 -6
- package/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.ts +7 -6
- package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +7 -6
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +7 -6
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +7 -6
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.ts +40 -0
- package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +15 -6
- package/src/multiValue/PRESET_SCATTER_SIMPLE.ts +40 -0
- package/src/multiValue/index.ts +13 -2
- package/src/params.ts +7 -4
- package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +3 -9
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +3 -9
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +3 -9
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +3 -11
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +3 -9
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE.ts +34 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +3 -9
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +3 -9
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +3 -9
- package/src/relationship/PRESET_FORCE_DIRECTED_SIMPLE.ts +34 -0
- package/src/relationship/index.ts +3 -1
- package/src/series/PRESET_BUBBLES_BASIC.ts +3 -5
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +3 -4
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +3 -4
- package/src/series/PRESET_BUBBLES_SIMPLE.ts +39 -0
- package/src/series/PRESET_BUBBLES_SUM_SERIES.ts +3 -5
- package/src/series/PRESET_PIE_BASIC.ts +3 -4
- package/src/series/PRESET_PIE_DONUT.ts +3 -4
- package/src/series/PRESET_PIE_HALF_DONUT.ts +3 -4
- package/src/series/PRESET_PIE_SEPARATE_SERIES.ts +3 -5
- package/src/series/PRESET_PIE_SIMPLE.ts +43 -0
- package/src/series/PRESET_PIE_SUM_SERIES.ts +3 -5
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +3 -4
- package/src/series/PRESET_ROSE_BASIC.ts +9 -5
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +9 -4
- package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +9 -3
- package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +9 -3
- package/src/series/PRESET_ROSE_SIMPLE.ts +43 -0
- package/src/series/PRESET_ROSE_SUM_SERIES.ts +9 -5
- package/src/series/PRESET_SERIES_BASIC.ts +3 -5
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +3 -5
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +3 -5
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +4 -5
- package/src/series/index.ts +3 -0
- package/src/tree/PRESET_TREE_MAP_BASIC.ts +3 -2
- package/src/tree/PRESET_TREE_MAP_SIMPLE.ts +44 -0
- package/src/tree/index.ts +2 -1
- package/src/types.ts +38 -19
@@ -3,12 +3,12 @@ import type {
|
|
3
3
|
PresetMultiGridPluginParams,
|
4
4
|
PresetNoneDataPluginParams
|
5
5
|
} from '../types'
|
6
|
-
// import { ALL_PLUGIN_PARAMS_MULTI_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
6
|
|
8
7
|
export const PRESET_MULTI_GRID_BASIC: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
8
|
& Partial<PresetNoneDataPluginParams>> = {
|
10
9
|
name: 'PRESET_MULTI_GRID_BASIC',
|
11
|
-
description: '
|
10
|
+
description: 'Basic MultiGrid',
|
11
|
+
descriptionZh: '基本MultiGrid參數',
|
12
12
|
chartParams: {
|
13
13
|
colors: {
|
14
14
|
light: {
|
@@ -27,19 +27,15 @@ export const PRESET_MULTI_GRID_BASIC: PresetPartial<'multiGrid', Partial<PresetM
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
padding: {
|
30
|
-
top:
|
31
|
-
right:
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
32
|
bottom: 100,
|
33
33
|
left: 80
|
34
34
|
},
|
35
35
|
highlightTarget: 'series'
|
36
36
|
},
|
37
|
-
|
38
|
-
// ...ALL_PLUGIN_PARAMS_MULTI_GRID,
|
39
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
37
|
+
pluginParams: {
|
40
38
|
MultiGridLegend: {
|
41
|
-
// position: 'bottom',
|
42
|
-
// justify: 'center',
|
43
39
|
placement: 'bottom',
|
44
40
|
padding: 14,
|
45
41
|
gridList: [
|
@@ -3,12 +3,12 @@ import type {
|
|
3
3
|
PresetMultiGridPluginParams,
|
4
4
|
PresetNoneDataPluginParams
|
5
5
|
} from '../types'
|
6
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
6
|
|
8
7
|
export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
8
|
& Partial<PresetNoneDataPluginParams>> = {
|
10
9
|
name: 'PRESET_MULTI_GRID_DIVERGING',
|
11
|
-
description: '
|
10
|
+
description: 'Diverging Grid',
|
11
|
+
descriptionZh: '雙向Grid',
|
12
12
|
chartParams: {
|
13
13
|
colors: {
|
14
14
|
light: {
|
@@ -27,8 +27,8 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
padding: {
|
30
|
-
top:
|
31
|
-
right:
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
32
|
bottom: 100,
|
33
33
|
left: 80
|
34
34
|
},
|
@@ -62,10 +62,8 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
|
|
62
62
|
},
|
63
63
|
separateGrid: true // 將兩個grid拆分
|
64
64
|
},
|
65
|
-
|
66
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
65
|
+
pluginParams: {
|
67
66
|
MultiGroupAxis: {
|
68
|
-
// tickPadding: 60, // 加長間距
|
69
67
|
gridIndexes: [0] // 只顯示一個
|
70
68
|
},
|
71
69
|
MultiValueAxis: {
|
@@ -77,7 +75,7 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
|
|
77
75
|
MultiBars: {
|
78
76
|
gridIndexes: [0, 1]
|
79
77
|
},
|
80
|
-
|
78
|
+
MultiStackedBars: {
|
81
79
|
gridIndexes: [0, 1]
|
82
80
|
},
|
83
81
|
MultiBarsTriangle: {
|
@@ -93,8 +91,6 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
|
|
93
91
|
gridIndexes: [0, 1]
|
94
92
|
},
|
95
93
|
MultiGridLegend: {
|
96
|
-
// position: 'bottom',
|
97
|
-
// justify: 'center',
|
98
94
|
placement: 'bottom',
|
99
95
|
padding: 14,
|
100
96
|
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
|
7
|
+
export const PRESET_MULTI_GRID_DIVERGING_SIMPLE: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
8
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
+
name: 'PRESET_MULTI_GRID_DIVERGING_SIMPLE',
|
10
|
+
description: 'Simple diverging Grid',
|
11
|
+
descriptionZh: '簡單雙向Grid',
|
12
|
+
chartParams: {
|
13
|
+
colors: {
|
14
|
+
light: {
|
15
|
+
label: [
|
16
|
+
"#4BABFF",
|
17
|
+
"#94D6CB",
|
18
|
+
"#F9B052",
|
19
|
+
"#8454D4",
|
20
|
+
"#D58C75",
|
21
|
+
"#42C724",
|
22
|
+
"#FF8B8B",
|
23
|
+
"#904026",
|
24
|
+
"#C50669",
|
25
|
+
"#4B25B3"
|
26
|
+
],
|
27
|
+
}
|
28
|
+
},
|
29
|
+
padding: {
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
|
+
bottom: 60,
|
33
|
+
left: 40
|
34
|
+
},
|
35
|
+
},
|
36
|
+
dataFormatter: {
|
37
|
+
gridList: [
|
38
|
+
// 第一個grid
|
39
|
+
{
|
40
|
+
groupAxis: {
|
41
|
+
position: 'right'
|
42
|
+
},
|
43
|
+
valueAxis: {
|
44
|
+
position: 'bottom',
|
45
|
+
scaleRange: [0, 0.95]
|
46
|
+
},
|
47
|
+
},
|
48
|
+
// 第二個grid
|
49
|
+
{
|
50
|
+
groupAxis: {
|
51
|
+
position: 'left'
|
52
|
+
},
|
53
|
+
valueAxis: {
|
54
|
+
position: 'bottom',
|
55
|
+
scaleRange: [0, 0.95]
|
56
|
+
},
|
57
|
+
}
|
58
|
+
],
|
59
|
+
// 設定排版方式
|
60
|
+
container: {
|
61
|
+
gap: 100,
|
62
|
+
rowAmount: 1,
|
63
|
+
columnAmount: 2
|
64
|
+
},
|
65
|
+
separateGrid: true // 將兩個grid拆分
|
66
|
+
},
|
67
|
+
pluginParams: {
|
68
|
+
MultiGroupAxis: {
|
69
|
+
tickPadding: 10,
|
70
|
+
gridIndexes: [0] // 只顯示一個
|
71
|
+
},
|
72
|
+
MultiValueAxis: {
|
73
|
+
gridIndexes: [0, 1]
|
74
|
+
},
|
75
|
+
MultiStackedValueAxis: {
|
76
|
+
gridIndexes: [0, 1]
|
77
|
+
},
|
78
|
+
MultiBars: {
|
79
|
+
gridIndexes: [0, 1]
|
80
|
+
},
|
81
|
+
MultiStackedBars: {
|
82
|
+
gridIndexes: [0, 1]
|
83
|
+
},
|
84
|
+
MultiBarsTriangle: {
|
85
|
+
gridIndexes: [0, 1]
|
86
|
+
},
|
87
|
+
MultiLines: {
|
88
|
+
gridIndexes: [0, 1]
|
89
|
+
},
|
90
|
+
MultiLineAreas: {
|
91
|
+
gridIndexes: [0, 1]
|
92
|
+
},
|
93
|
+
MultiDots: {
|
94
|
+
gridIndexes: [0, 1]
|
95
|
+
},
|
96
|
+
MultiGridLegend: {
|
97
|
+
placement: 'bottom',
|
98
|
+
padding: 7,
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
@@ -3,14 +3,14 @@ import type {
|
|
3
3
|
PresetMultiGridPluginParams,
|
4
4
|
PresetNoneDataPluginParams
|
5
5
|
} from '../types'
|
6
|
-
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
6
|
|
8
7
|
type PresetMultiGridRoundPluginParams = Omit<PresetMultiGridPluginParams, 'MultiBarsTriangle'>
|
9
8
|
|
10
|
-
export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<
|
9
|
+
export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<PresetMultiGridRoundPluginParams>
|
11
10
|
& Partial<PresetNoneDataPluginParams>> = {
|
12
11
|
name: 'PRESET_MULTI_GRID_ROUND_STYLE',
|
13
|
-
description: 'MultiGrid
|
12
|
+
description: 'MultiGrid with round style',
|
13
|
+
descriptionZh: 'MultiGrid圓弧風格',
|
14
14
|
chartParams: {
|
15
15
|
colors: {
|
16
16
|
light: {
|
@@ -29,26 +29,23 @@ export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<P
|
|
29
29
|
}
|
30
30
|
},
|
31
31
|
padding: {
|
32
|
-
top:
|
33
|
-
right:
|
32
|
+
top: 40,
|
33
|
+
right: 40,
|
34
34
|
bottom: 100,
|
35
35
|
left: 80
|
36
36
|
},
|
37
37
|
highlightTarget: 'series'
|
38
38
|
},
|
39
|
-
|
40
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
39
|
+
pluginParams: {
|
41
40
|
MultiBars: {
|
42
41
|
barWidth: 0,
|
43
42
|
barPadding: 1,
|
44
43
|
barGroupPadding: 10,
|
45
44
|
barRadius: true,
|
46
45
|
},
|
47
|
-
|
46
|
+
MultiStackedBars: {},
|
48
47
|
MultiDots: {},
|
49
48
|
MultiGridLegend: {
|
50
|
-
// position: 'bottom',
|
51
|
-
// justify: 'center',
|
52
49
|
placement: 'bottom',
|
53
50
|
padding: 14,
|
54
51
|
gridList: [
|
@@ -0,0 +1,81 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
|
7
|
+
type PresetMultiGridRoundPluginParams = Omit<PresetMultiGridPluginParams, 'MultiBarsTriangle'>
|
8
|
+
|
9
|
+
export const PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE: PresetPartial<'multiGrid', Partial<PresetMultiGridRoundPluginParams>
|
10
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
11
|
+
name: 'PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE',
|
12
|
+
description: 'Simple MultiGrid with round style',
|
13
|
+
descriptionZh: '簡單MultiGrid圓弧風格',
|
14
|
+
chartParams: {
|
15
|
+
colors: {
|
16
|
+
light: {
|
17
|
+
label: [
|
18
|
+
"#4BABFF",
|
19
|
+
"#94D6CB",
|
20
|
+
"#F9B052",
|
21
|
+
"#8454D4",
|
22
|
+
"#D58C75",
|
23
|
+
"#42C724",
|
24
|
+
"#FF8B8B",
|
25
|
+
"#904026",
|
26
|
+
"#C50669",
|
27
|
+
"#4B25B3"
|
28
|
+
],
|
29
|
+
}
|
30
|
+
},
|
31
|
+
padding: {
|
32
|
+
top: 40,
|
33
|
+
right: 40,
|
34
|
+
bottom: 60,
|
35
|
+
left: 80
|
36
|
+
},
|
37
|
+
highlightTarget: 'series'
|
38
|
+
},
|
39
|
+
dataFormatter: {
|
40
|
+
gridList: [
|
41
|
+
// 設定一個所有grid一起套用
|
42
|
+
{
|
43
|
+
valueAxis: {
|
44
|
+
scaleRange: [0, 0.95]
|
45
|
+
},
|
46
|
+
},
|
47
|
+
],
|
48
|
+
},
|
49
|
+
pluginParams: {
|
50
|
+
MultiBars: {
|
51
|
+
barWidth: 0,
|
52
|
+
barPadding: 1,
|
53
|
+
barGroupPadding: 10,
|
54
|
+
barRadius: true,
|
55
|
+
},
|
56
|
+
MultiStackedBars: {},
|
57
|
+
MultiDots: {},
|
58
|
+
MultiGridLegend: {
|
59
|
+
placement: 'bottom',
|
60
|
+
padding: 14,
|
61
|
+
gridList: [
|
62
|
+
{
|
63
|
+
listRectRadius: 7,
|
64
|
+
},
|
65
|
+
{
|
66
|
+
listRectHeight: 2,
|
67
|
+
}
|
68
|
+
]
|
69
|
+
},
|
70
|
+
MultiGroupAxis: {},
|
71
|
+
MultiLineAreas: {},
|
72
|
+
MultiLines: {
|
73
|
+
lineCurve: 'curveMonotoneX',
|
74
|
+
lineWidth: 3
|
75
|
+
},
|
76
|
+
MultiValueAxis: {},
|
77
|
+
MultiStackedValueAxis: {},
|
78
|
+
OverlappingValueAxes: {},
|
79
|
+
OverlappingStackedValueAxes: {},
|
80
|
+
}
|
81
|
+
}
|
@@ -3,12 +3,12 @@ import type {
|
|
3
3
|
PresetMultiGridPluginParams,
|
4
4
|
PresetNoneDataPluginParams
|
5
5
|
} from '../types'
|
6
|
-
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
6
|
|
8
7
|
export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
8
|
& Partial<PresetNoneDataPluginParams>> = {
|
10
9
|
name: 'PRESET_MULTI_GRID_SEPARATE_GRID',
|
11
|
-
description: '2
|
10
|
+
description: '2 groups of Grid chart',
|
11
|
+
descriptionZh: '2組Grid圖表',
|
12
12
|
chartParams: {
|
13
13
|
colors: {
|
14
14
|
light: {
|
@@ -27,8 +27,8 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
padding: {
|
30
|
-
top:
|
31
|
-
right:
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
32
|
bottom: 140,
|
33
33
|
left: 80
|
34
34
|
},
|
@@ -36,8 +36,7 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
|
|
36
36
|
dataFormatter: {
|
37
37
|
separateGrid: true,
|
38
38
|
},
|
39
|
-
|
40
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
39
|
+
pluginParams: {
|
41
40
|
MultiGroupAxis: {
|
42
41
|
tickTextRotate: -30,
|
43
42
|
gridIndexes: 'all'
|
@@ -51,7 +50,7 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
|
|
51
50
|
MultiBars: {
|
52
51
|
gridIndexes: 'all'
|
53
52
|
},
|
54
|
-
|
53
|
+
MultiStackedBars: {
|
55
54
|
gridIndexes: 'all'
|
56
55
|
},
|
57
56
|
MultiBarsTriangle: {
|
@@ -67,8 +66,6 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
|
|
67
66
|
gridIndexes: 'all'
|
68
67
|
},
|
69
68
|
MultiGridLegend: {
|
70
|
-
// position: 'bottom',
|
71
|
-
// justify: 'center',
|
72
69
|
placement: 'bottom',
|
73
70
|
padding: 14,
|
74
71
|
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
|
7
|
+
export const PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
8
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
+
name: 'PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE',
|
10
|
+
description: 'Simple 2 groups of Grid chart',
|
11
|
+
descriptionZh: '簡單2組Grid圖表',
|
12
|
+
chartParams: {
|
13
|
+
colors: {
|
14
|
+
light: {
|
15
|
+
label: [
|
16
|
+
"#4BABFF",
|
17
|
+
"#94D6CB",
|
18
|
+
"#F9B052",
|
19
|
+
"#8454D4",
|
20
|
+
"#D58C75",
|
21
|
+
"#42C724",
|
22
|
+
"#FF8B8B",
|
23
|
+
"#904026",
|
24
|
+
"#C50669",
|
25
|
+
"#4B25B3"
|
26
|
+
],
|
27
|
+
}
|
28
|
+
},
|
29
|
+
padding: {
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
|
+
bottom: 80,
|
33
|
+
left: 40
|
34
|
+
},
|
35
|
+
},
|
36
|
+
dataFormatter: {
|
37
|
+
gridList: [
|
38
|
+
// 設定一個所有grid一起套用
|
39
|
+
{
|
40
|
+
valueAxis: {
|
41
|
+
scaleRange: [0, 0.95]
|
42
|
+
},
|
43
|
+
},
|
44
|
+
],
|
45
|
+
separateGrid: true,
|
46
|
+
container: {
|
47
|
+
gap: 40
|
48
|
+
},
|
49
|
+
},
|
50
|
+
pluginParams: {
|
51
|
+
MultiGroupAxis: {
|
52
|
+
// tickTextRotate: -30,
|
53
|
+
gridIndexes: 'all'
|
54
|
+
},
|
55
|
+
MultiValueAxis: {
|
56
|
+
gridIndexes: 'all'
|
57
|
+
},
|
58
|
+
MultiStackedValueAxis: {
|
59
|
+
gridIndexes: 'all'
|
60
|
+
},
|
61
|
+
MultiBars: {
|
62
|
+
gridIndexes: 'all'
|
63
|
+
},
|
64
|
+
MultiStackedBars: {
|
65
|
+
gridIndexes: 'all'
|
66
|
+
},
|
67
|
+
MultiBarsTriangle: {
|
68
|
+
gridIndexes: 'all'
|
69
|
+
},
|
70
|
+
MultiLines: {
|
71
|
+
gridIndexes: 'all'
|
72
|
+
},
|
73
|
+
MultiLineAreas: {
|
74
|
+
gridIndexes: 'all'
|
75
|
+
},
|
76
|
+
MultiDots: {
|
77
|
+
gridIndexes: 'all'
|
78
|
+
},
|
79
|
+
MultiGridLegend: {
|
80
|
+
placement: 'bottom',
|
81
|
+
padding: 7,
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
|
7
|
+
export const PRESET_MULTI_GRID_SIMPLE: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
8
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
+
name: 'PRESET_MULTI_GRID_SIMPLE',
|
10
|
+
description: 'Simple MultiGrid',
|
11
|
+
descriptionZh: '簡單MultiGrid',
|
12
|
+
chartParams: {
|
13
|
+
colors: {
|
14
|
+
light: {
|
15
|
+
label: [
|
16
|
+
"#4BABFF",
|
17
|
+
"#94D6CB",
|
18
|
+
"#F9B052",
|
19
|
+
"#8454D4",
|
20
|
+
"#D58C75",
|
21
|
+
"#42C724",
|
22
|
+
"#FF8B8B",
|
23
|
+
"#904026",
|
24
|
+
"#C50669",
|
25
|
+
"#4B25B3"
|
26
|
+
],
|
27
|
+
}
|
28
|
+
},
|
29
|
+
padding: {
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
|
+
bottom: 80,
|
33
|
+
left: 40
|
34
|
+
},
|
35
|
+
highlightTarget: 'series'
|
36
|
+
},
|
37
|
+
dataFormatter: {
|
38
|
+
gridList: [
|
39
|
+
// 設定一個所有grid一起套用
|
40
|
+
{
|
41
|
+
valueAxis: {
|
42
|
+
scaleRange: [0, 0.95]
|
43
|
+
},
|
44
|
+
},
|
45
|
+
],
|
46
|
+
},
|
47
|
+
pluginParams: {
|
48
|
+
MultiGridLegend: {
|
49
|
+
placement: 'bottom',
|
50
|
+
padding: 7,
|
51
|
+
gridList: [
|
52
|
+
{
|
53
|
+
},
|
54
|
+
{
|
55
|
+
listRectHeight: 2,
|
56
|
+
}
|
57
|
+
]
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
@@ -3,12 +3,12 @@ import type {
|
|
3
3
|
PresetMultiGridPluginParams,
|
4
4
|
PresetNoneDataPluginParams
|
5
5
|
} from '../types'
|
6
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
6
|
|
8
7
|
export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
8
|
& Partial<PresetNoneDataPluginParams>> = {
|
10
9
|
name: 'PRESET_MULTI_LINES_SEPARATE_GRID',
|
11
|
-
description: '
|
10
|
+
description: 'Multiple groups of Line chart',
|
11
|
+
descriptionZh: '多組分開折線圖表',
|
12
12
|
chartParams: {
|
13
13
|
colors: {
|
14
14
|
light: {
|
@@ -27,8 +27,8 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
padding: {
|
30
|
-
top:
|
31
|
-
right:
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
32
|
bottom: 140,
|
33
33
|
left: 80
|
34
34
|
},
|
@@ -36,8 +36,7 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
|
|
36
36
|
dataFormatter: {
|
37
37
|
separateGrid: true,
|
38
38
|
},
|
39
|
-
|
40
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
39
|
+
pluginParams: {
|
41
40
|
MultiGroupAxis: {
|
42
41
|
tickTextRotate: -30,
|
43
42
|
gridIndexes: 'all'
|
@@ -51,7 +50,7 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
|
|
51
50
|
MultiBars: {
|
52
51
|
gridIndexes: 'all'
|
53
52
|
},
|
54
|
-
|
53
|
+
MultiStackedBars: {
|
55
54
|
gridIndexes: 'all'
|
56
55
|
},
|
57
56
|
MultiBarsTriangle: {
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
|
7
|
+
export const PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
8
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
+
name: 'PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE',
|
10
|
+
description: 'Simple Multiple groups of Line chart',
|
11
|
+
descriptionZh: '簡單多組分開折線圖表',
|
12
|
+
chartParams: {
|
13
|
+
colors: {
|
14
|
+
light: {
|
15
|
+
label: [
|
16
|
+
"#4BABFF",
|
17
|
+
"#94D6CB",
|
18
|
+
"#F9B052",
|
19
|
+
"#8454D4",
|
20
|
+
"#D58C75",
|
21
|
+
"#42C724",
|
22
|
+
"#FF8B8B",
|
23
|
+
"#904026",
|
24
|
+
"#C50669",
|
25
|
+
"#4B25B3"
|
26
|
+
],
|
27
|
+
}
|
28
|
+
},
|
29
|
+
padding: {
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
|
+
bottom: 80,
|
33
|
+
left: 40
|
34
|
+
},
|
35
|
+
},
|
36
|
+
dataFormatter: {
|
37
|
+
gridList: [
|
38
|
+
// 設定一個所有grid一起套用
|
39
|
+
{
|
40
|
+
valueAxis: {
|
41
|
+
scaleRange: [0, 0.95]
|
42
|
+
},
|
43
|
+
},
|
44
|
+
],
|
45
|
+
separateGrid: true,
|
46
|
+
container: {
|
47
|
+
gap: 40
|
48
|
+
}
|
49
|
+
},
|
50
|
+
pluginParams: {
|
51
|
+
MultiGroupAxis: {
|
52
|
+
// tickTextRotate: -30,
|
53
|
+
gridIndexes: 'all'
|
54
|
+
},
|
55
|
+
MultiValueAxis: {
|
56
|
+
gridIndexes: 'all'
|
57
|
+
},
|
58
|
+
MultiStackedValueAxis: {
|
59
|
+
gridIndexes: 'all'
|
60
|
+
},
|
61
|
+
MultiBars: {
|
62
|
+
gridIndexes: 'all'
|
63
|
+
},
|
64
|
+
MultiStackedBars: {
|
65
|
+
gridIndexes: 'all'
|
66
|
+
},
|
67
|
+
MultiBarsTriangle: {
|
68
|
+
gridIndexes: 'all'
|
69
|
+
},
|
70
|
+
MultiLines: {
|
71
|
+
gridIndexes: 'all'
|
72
|
+
},
|
73
|
+
MultiLineAreas: {
|
74
|
+
gridIndexes: 'all'
|
75
|
+
},
|
76
|
+
MultiDots: {
|
77
|
+
gridIndexes: 'all'
|
78
|
+
},
|
79
|
+
MultiGridLegend: {
|
80
|
+
placement: 'bottom',
|
81
|
+
padding: 7,
|
82
|
+
gridList: [
|
83
|
+
{
|
84
|
+
listRectHeight: 2,
|
85
|
+
},
|
86
|
+
{
|
87
|
+
listRectHeight: 2,
|
88
|
+
},
|
89
|
+
{
|
90
|
+
listRectHeight: 2,
|
91
|
+
},
|
92
|
+
{
|
93
|
+
listRectHeight: 2,
|
94
|
+
},
|
95
|
+
{
|
96
|
+
listRectHeight: 2,
|
97
|
+
},
|
98
|
+
{
|
99
|
+
listRectHeight: 2,
|
100
|
+
},
|
101
|
+
{
|
102
|
+
listRectHeight: 2,
|
103
|
+
},
|
104
|
+
{
|
105
|
+
listRectHeight: 2,
|
106
|
+
}
|
107
|
+
]
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|