@orbcharts/presets-basic 3.0.0-beta.12 → 3.0.0-beta.14
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/LICENSE +200 -200
- package/dist/orbcharts-presets-basic.es.js +1565 -198
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/multiValue/PRESET_RACING_BARS_LOOP.d.ts +4 -0
- package/dist/src/multiValue/index.d.ts +1 -0
- package/lib/core-types.ts +7 -7
- package/lib/plugins-basic-types.ts +6 -6
- package/package.json +42 -42
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +74 -60
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +75 -61
- package/src/grid/PRESET_BARS_ROUND.ts +70 -56
- package/src/grid/PRESET_BARS_THIN.ts +67 -53
- package/src/grid/PRESET_GRID_BASIC.ts +58 -44
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +75 -61
- package/src/grid/PRESET_GRID_PN_SCALE.ts +66 -52
- package/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.ts +63 -49
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +66 -52
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +71 -57
- package/src/grid/PRESET_GRID_SIMPLE.ts +58 -44
- package/src/grid/PRESET_LINES_BASIC.ts +62 -48
- package/src/grid/PRESET_LINES_CURVE.ts +65 -51
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +64 -50
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +70 -56
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +64 -50
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +67 -53
- package/src/grid/PRESET_LINES_SIMPLE.ts +67 -53
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +66 -52
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +68 -60
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +79 -65
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +72 -58
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +72 -58
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +70 -56
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +73 -59
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +74 -60
- package/src/grid/PRESET_LINE_AREAS_SIMPLE.ts +71 -57
- package/src/grid/index.ts +26 -26
- package/src/index.ts +6 -6
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +64 -50
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +112 -98
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.ts +115 -101
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +85 -71
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.ts +95 -81
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +87 -73
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.ts +98 -84
- package/src/multiGrid/PRESET_MULTI_GRID_SIMPLE.ts +74 -60
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +115 -101
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.ts +124 -110
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +133 -119
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.ts +127 -113
- package/src/multiGrid/index.ts +12 -12
- package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +53 -39
- package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +64 -50
- package/src/multiValue/PRESET_MULTI_VALUE_SIMPLE.ts +53 -39
- package/src/multiValue/PRESET_RACING_BARS_ALL_ITEMS.ts +58 -44
- package/src/multiValue/PRESET_RACING_BARS_BASIC.ts +57 -43
- package/src/multiValue/PRESET_RACING_BARS_FAST.ts +57 -43
- package/src/multiValue/PRESET_RACING_BARS_FASTER.ts +57 -43
- package/src/multiValue/PRESET_RACING_BARS_LOOP.ts +58 -0
- package/src/multiValue/PRESET_RACING_BARS_OUTSIDE_LABELS.ts +61 -47
- package/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.ts +74 -60
- package/src/multiValue/PRESET_RACING_BARS_SIMPLE.ts +57 -43
- package/src/multiValue/PRESET_RACING_BARS_STOP.ts +56 -42
- package/src/multiValue/PRESET_SCATTER_BASIC.ts +54 -40
- package/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.ts +54 -40
- package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +57 -43
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +57 -43
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +57 -43
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.ts +54 -40
- package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +65 -51
- package/src/multiValue/PRESET_SCATTER_SIMPLE.ts +54 -40
- package/src/multiValue/index.ts +20 -19
- package/src/params.ts +83 -83
- package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +47 -33
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +47 -33
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +52 -38
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +52 -38
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +49 -35
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE.ts +48 -34
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +54 -40
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +52 -38
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +49 -35
- package/src/relationship/PRESET_FORCE_DIRECTED_SIMPLE.ts +48 -34
- package/src/relationship/index.ts +9 -9
- package/src/series/PRESET_BUBBLES_BASIC.ts +46 -32
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +49 -35
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +58 -44
- package/src/series/PRESET_BUBBLES_SIMPLE.ts +53 -39
- package/src/series/PRESET_BUBBLES_SUM_SERIES.ts +48 -34
- package/src/series/PRESET_PIE_BASIC.ts +49 -35
- package/src/series/PRESET_PIE_DONUT.ts +54 -40
- package/src/series/PRESET_PIE_HALF_DONUT.ts +66 -52
- package/src/series/PRESET_PIE_SEPARATE_SERIES.ts +47 -33
- package/src/series/PRESET_PIE_SIMPLE.ts +56 -42
- package/src/series/PRESET_PIE_SUM_SERIES.ts +48 -34
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +55 -41
- package/src/series/PRESET_ROSE_BASIC.ts +55 -41
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +61 -47
- package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +55 -41
- package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +56 -42
- package/src/series/PRESET_ROSE_SIMPLE.ts +56 -42
- package/src/series/PRESET_ROSE_SUM_SERIES.ts +54 -40
- package/src/series/PRESET_SERIES_BASIC.ts +46 -32
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +47 -15
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +48 -16
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +49 -17
- package/src/series/index.ts +23 -23
- package/src/tree/PRESET_TREE_MAP_BASIC.ts +58 -44
- package/src/tree/PRESET_TREE_MAP_SIMPLE.ts +54 -44
- package/src/tree/index.ts +1 -1
- package/src/types.ts +368 -368
- package/tsconfig.base.json +13 -13
- package/tsconfig.json +2 -2
- package/vite.config.js +22 -22
@@ -1,101 +1,115 @@
|
|
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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
},
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
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
|
+
dark: {
|
29
|
+
label: [
|
30
|
+
"#4BABFF",
|
31
|
+
"#94D6CB",
|
32
|
+
"#F9B052",
|
33
|
+
"#8454D4",
|
34
|
+
"#D58C75",
|
35
|
+
"#42C724",
|
36
|
+
"#FF8B8B",
|
37
|
+
"#904026",
|
38
|
+
"#C50669",
|
39
|
+
"#4B25B3"
|
40
|
+
]
|
41
|
+
}
|
42
|
+
},
|
43
|
+
padding: {
|
44
|
+
top: 40,
|
45
|
+
right: 40,
|
46
|
+
bottom: 60,
|
47
|
+
left: 40
|
48
|
+
},
|
49
|
+
},
|
50
|
+
dataFormatter: {
|
51
|
+
gridList: [
|
52
|
+
// 第一個grid
|
53
|
+
{
|
54
|
+
groupAxis: {
|
55
|
+
position: 'right'
|
56
|
+
},
|
57
|
+
valueAxis: {
|
58
|
+
position: 'bottom',
|
59
|
+
scaleRange: [0, 0.95]
|
60
|
+
},
|
61
|
+
},
|
62
|
+
// 第二個grid
|
63
|
+
{
|
64
|
+
groupAxis: {
|
65
|
+
position: 'left'
|
66
|
+
},
|
67
|
+
valueAxis: {
|
68
|
+
position: 'bottom',
|
69
|
+
scaleRange: [0, 0.95]
|
70
|
+
},
|
71
|
+
}
|
72
|
+
],
|
73
|
+
// 設定排版方式
|
74
|
+
container: {
|
75
|
+
gap: 140,
|
76
|
+
rowAmount: 1,
|
77
|
+
columnAmount: 2
|
78
|
+
},
|
79
|
+
separateGrid: true // 將兩個grid拆分
|
80
|
+
},
|
81
|
+
pluginParams: {
|
82
|
+
MultiGroupAxis: {
|
83
|
+
tickPadding: 10,
|
84
|
+
gridIndexes: [0] // 只顯示一個
|
85
|
+
},
|
86
|
+
MultiValueAxis: {
|
87
|
+
gridIndexes: [0, 1]
|
88
|
+
},
|
89
|
+
MultiStackedValueAxis: {
|
90
|
+
gridIndexes: [0, 1]
|
91
|
+
},
|
92
|
+
MultiBars: {
|
93
|
+
gridIndexes: [0, 1]
|
94
|
+
},
|
95
|
+
MultiStackedBars: {
|
96
|
+
gridIndexes: [0, 1]
|
97
|
+
},
|
98
|
+
MultiBarsTriangle: {
|
99
|
+
gridIndexes: [0, 1]
|
100
|
+
},
|
101
|
+
MultiLines: {
|
102
|
+
gridIndexes: [0, 1]
|
103
|
+
},
|
104
|
+
MultiLineAreas: {
|
105
|
+
gridIndexes: [0, 1]
|
106
|
+
},
|
107
|
+
MultiDots: {
|
108
|
+
gridIndexes: [0, 1]
|
109
|
+
},
|
110
|
+
MultiGridLegend: {
|
111
|
+
placement: 'bottom',
|
112
|
+
padding: 7,
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
@@ -1,71 +1,85 @@
|
|
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: PresetPartial<'multiGrid', Partial<PresetMultiGridRoundPluginParams>
|
10
|
-
& Partial<PresetNoneDataPluginParams>> = {
|
11
|
-
name: 'PRESET_MULTI_GRID_ROUND_STYLE',
|
12
|
-
description: '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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
},
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
}
|
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: PresetPartial<'multiGrid', Partial<PresetMultiGridRoundPluginParams>
|
10
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
11
|
+
name: 'PRESET_MULTI_GRID_ROUND_STYLE',
|
12
|
+
description: '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
|
+
dark: {
|
31
|
+
label: [
|
32
|
+
"#4BABFF",
|
33
|
+
"#94D6CB",
|
34
|
+
"#F9B052",
|
35
|
+
"#8454D4",
|
36
|
+
"#D58C75",
|
37
|
+
"#42C724",
|
38
|
+
"#FF8B8B",
|
39
|
+
"#904026",
|
40
|
+
"#C50669",
|
41
|
+
"#4B25B3"
|
42
|
+
]
|
43
|
+
}
|
44
|
+
},
|
45
|
+
padding: {
|
46
|
+
top: 40,
|
47
|
+
right: 40,
|
48
|
+
bottom: 100,
|
49
|
+
left: 80
|
50
|
+
},
|
51
|
+
highlightTarget: 'series'
|
52
|
+
},
|
53
|
+
pluginParams: {
|
54
|
+
MultiBars: {
|
55
|
+
barWidth: 0,
|
56
|
+
barPadding: 1,
|
57
|
+
barGroupPadding: 10,
|
58
|
+
barRadius: true,
|
59
|
+
},
|
60
|
+
MultiStackedBars: {},
|
61
|
+
MultiDots: {},
|
62
|
+
MultiGridLegend: {
|
63
|
+
placement: 'bottom',
|
64
|
+
padding: 14,
|
65
|
+
gridList: [
|
66
|
+
{
|
67
|
+
listRectRadius: 7,
|
68
|
+
},
|
69
|
+
{
|
70
|
+
listRectHeight: 2,
|
71
|
+
}
|
72
|
+
]
|
73
|
+
},
|
74
|
+
MultiGroupAxis: {},
|
75
|
+
MultiLineAreas: {},
|
76
|
+
MultiLines: {
|
77
|
+
lineCurve: 'curveMonotoneX',
|
78
|
+
lineWidth: 3
|
79
|
+
},
|
80
|
+
MultiValueAxis: {},
|
81
|
+
MultiStackedValueAxis: {},
|
82
|
+
OverlappingValueAxes: {},
|
83
|
+
OverlappingStackedValueAxes: {},
|
84
|
+
}
|
85
|
+
}
|
@@ -1,81 +1,95 @@
|
|
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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
},
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
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
|
+
dark: {
|
31
|
+
label: [
|
32
|
+
"#4BABFF",
|
33
|
+
"#94D6CB",
|
34
|
+
"#F9B052",
|
35
|
+
"#8454D4",
|
36
|
+
"#D58C75",
|
37
|
+
"#42C724",
|
38
|
+
"#FF8B8B",
|
39
|
+
"#904026",
|
40
|
+
"#C50669",
|
41
|
+
"#4B25B3"
|
42
|
+
]
|
43
|
+
}
|
44
|
+
},
|
45
|
+
padding: {
|
46
|
+
top: 40,
|
47
|
+
right: 40,
|
48
|
+
bottom: 60,
|
49
|
+
left: 80
|
50
|
+
},
|
51
|
+
highlightTarget: 'series'
|
52
|
+
},
|
53
|
+
dataFormatter: {
|
54
|
+
gridList: [
|
55
|
+
// 設定一個所有grid一起套用
|
56
|
+
{
|
57
|
+
valueAxis: {
|
58
|
+
scaleRange: [0, 0.95]
|
59
|
+
},
|
60
|
+
},
|
61
|
+
],
|
62
|
+
},
|
63
|
+
pluginParams: {
|
64
|
+
MultiBars: {
|
65
|
+
barWidth: 0,
|
66
|
+
barPadding: 1,
|
67
|
+
barGroupPadding: 10,
|
68
|
+
barRadius: true,
|
69
|
+
},
|
70
|
+
MultiStackedBars: {},
|
71
|
+
MultiDots: {},
|
72
|
+
MultiGridLegend: {
|
73
|
+
placement: 'bottom',
|
74
|
+
padding: 14,
|
75
|
+
gridList: [
|
76
|
+
{
|
77
|
+
listRectRadius: 7,
|
78
|
+
},
|
79
|
+
{
|
80
|
+
listRectHeight: 2,
|
81
|
+
}
|
82
|
+
]
|
83
|
+
},
|
84
|
+
MultiGroupAxis: {},
|
85
|
+
MultiLineAreas: {},
|
86
|
+
MultiLines: {
|
87
|
+
lineCurve: 'curveMonotoneX',
|
88
|
+
lineWidth: 3
|
89
|
+
},
|
90
|
+
MultiValueAxis: {},
|
91
|
+
MultiStackedValueAxis: {},
|
92
|
+
OverlappingValueAxes: {},
|
93
|
+
OverlappingStackedValueAxes: {},
|
94
|
+
}
|
95
|
+
}
|