@orbcharts/presets-basic 3.0.0-beta.10 → 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 +3031 -566
- 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_BASIC.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_SIMPLE.d.ts +4 -0
- package/dist/src/multiValue/index.d.ts +15 -0
- 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_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_BUBBLES_SIMPLE.d.ts +4 -0
- package/dist/src/series/PRESET_BUBBLES_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_SIMPLE.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SIMPLE.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/index.d.ts +10 -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 +28 -24
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +22 -13
- package/src/grid/PRESET_BARS_ROUND.ts +23 -6
- package/src/grid/PRESET_BARS_THIN.ts +23 -6
- package/src/grid/PRESET_GRID_BASIC.ts +23 -6
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +22 -5
- package/src/grid/PRESET_GRID_PN_SCALE.ts +23 -6
- package/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.ts +49 -0
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +23 -6
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +23 -6
- package/src/grid/PRESET_GRID_SIMPLE.ts +44 -0
- package/src/grid/PRESET_LINES_BASIC.ts +23 -10
- package/src/grid/PRESET_LINES_CURVE.ts +23 -10
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +23 -10
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +28 -23
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +23 -10
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +23 -10
- package/src/grid/PRESET_LINES_SIMPLE.ts +53 -0
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +23 -10
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +23 -6
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +23 -6
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +26 -15
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +29 -18
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +26 -15
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +26 -15
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +27 -17
- 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 +23 -11
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +25 -13
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.ts +101 -0
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +25 -12
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.ts +81 -0
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +24 -11
- 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 +24 -9
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.ts +110 -0
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +24 -9
- 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 +23 -7
- package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +31 -7
- 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 +40 -0
- package/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.ts +40 -0
- package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +24 -7
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +24 -7
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +43 -0
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.ts +40 -0
- package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +51 -0
- package/src/multiValue/PRESET_SCATTER_SIMPLE.ts +40 -0
- package/src/multiValue/index.ts +16 -1
- package/src/params.ts +7 -4
- package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +21 -11
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +21 -11
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +21 -11
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +21 -13
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +21 -11
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE.ts +34 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +21 -11
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +21 -11
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +21 -11
- package/src/relationship/PRESET_FORCE_DIRECTED_SIMPLE.ts +34 -0
- package/src/relationship/index.ts +3 -1
- package/src/series/PRESET_BUBBLES_BASIC.ts +32 -0
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +21 -4
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +19 -4
- package/src/series/PRESET_BUBBLES_SIMPLE.ts +39 -0
- package/src/series/PRESET_BUBBLES_SUM_SERIES.ts +34 -0
- package/src/series/PRESET_PIE_BASIC.ts +21 -4
- package/src/series/PRESET_PIE_DONUT.ts +21 -4
- package/src/series/PRESET_PIE_HALF_DONUT.ts +21 -5
- package/src/series/PRESET_PIE_SEPARATE_SERIES.ts +34 -0
- package/src/series/PRESET_PIE_SIMPLE.ts +43 -0
- package/src/series/PRESET_PIE_SUM_SERIES.ts +34 -0
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +21 -4
- package/src/series/PRESET_ROSE_BASIC.ts +27 -5
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +27 -4
- package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +42 -0
- package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +43 -0
- package/src/series/PRESET_ROSE_SIMPLE.ts +43 -0
- package/src/series/PRESET_ROSE_SUM_SERIES.ts +40 -0
- package/src/series/PRESET_SERIES_BASIC.ts +21 -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 +10 -0
- package/src/tree/PRESET_TREE_MAP_BASIC.ts +20 -3
- package/src/tree/PRESET_TREE_MAP_SIMPLE.ts +44 -0
- package/src/tree/index.ts +2 -1
- package/src/types.ts +38 -19
@@ -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,25 +3,40 @@ 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
|
+
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
|
+
},
|
13
29
|
padding: {
|
14
|
-
top:
|
15
|
-
right:
|
16
|
-
bottom:
|
17
|
-
left:
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
|
+
bottom: 140,
|
33
|
+
left: 80
|
18
34
|
},
|
19
35
|
},
|
20
36
|
dataFormatter: {
|
21
37
|
separateGrid: true,
|
22
38
|
},
|
23
|
-
|
24
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
39
|
+
pluginParams: {
|
25
40
|
MultiGroupAxis: {
|
26
41
|
tickTextRotate: -30,
|
27
42
|
gridIndexes: 'all'
|
@@ -35,7 +50,7 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
|
|
35
50
|
MultiBars: {
|
36
51
|
gridIndexes: 'all'
|
37
52
|
},
|
38
|
-
|
53
|
+
MultiStackedBars: {
|
39
54
|
gridIndexes: 'all'
|
40
55
|
},
|
41
56
|
MultiBarsTriangle: {
|
@@ -51,8 +66,6 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
|
|
51
66
|
gridIndexes: 'all'
|
52
67
|
},
|
53
68
|
MultiGridLegend: {
|
54
|
-
// position: 'bottom',
|
55
|
-
// justify: 'center',
|
56
69
|
placement: 'bottom',
|
57
70
|
padding: 14,
|
58
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,25 +3,40 @@ 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
|
+
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
|
+
},
|
13
29
|
padding: {
|
14
|
-
top:
|
15
|
-
right:
|
16
|
-
bottom:
|
17
|
-
left:
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
|
+
bottom: 140,
|
33
|
+
left: 80
|
18
34
|
},
|
19
35
|
},
|
20
36
|
dataFormatter: {
|
21
37
|
separateGrid: true,
|
22
38
|
},
|
23
|
-
|
24
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
39
|
+
pluginParams: {
|
25
40
|
MultiGroupAxis: {
|
26
41
|
tickTextRotate: -30,
|
27
42
|
gridIndexes: 'all'
|
@@ -35,7 +50,7 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
|
|
35
50
|
MultiBars: {
|
36
51
|
gridIndexes: 'all'
|
37
52
|
},
|
38
|
-
|
53
|
+
MultiStackedBars: {
|
39
54
|
gridIndexes: 'all'
|
40
55
|
},
|
41
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
|
+
}
|
@@ -3,18 +3,34 @@ 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_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
8
|
& Partial<PresetNoneDataPluginParams>> = {
|
10
9
|
name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
|
11
|
-
description: '2
|
10
|
+
description: '2 groups of Line Area chart',
|
11
|
+
descriptionZh: '2組區域折線圖',
|
12
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
|
+
},
|
13
29
|
padding: {
|
14
|
-
top:
|
15
|
-
right:
|
16
|
-
bottom:
|
17
|
-
left:
|
30
|
+
top: 40,
|
31
|
+
right: 40,
|
32
|
+
bottom: 140,
|
33
|
+
left: 80
|
18
34
|
},
|
19
35
|
},
|
20
36
|
dataFormatter: {
|
@@ -38,8 +54,7 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
|
|
38
54
|
// columnAmount: 2,
|
39
55
|
// }
|
40
56
|
},
|
41
|
-
|
42
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
57
|
+
pluginParams: {
|
43
58
|
MultiGroupAxis: {
|
44
59
|
tickTextRotate: -30,
|
45
60
|
gridIndexes: 'all'
|
@@ -53,7 +68,7 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
|
|
53
68
|
MultiBars: {
|
54
69
|
gridIndexes: 'all'
|
55
70
|
},
|
56
|
-
|
71
|
+
MultiStackedBars: {
|
57
72
|
gridIndexes: 'all'
|
58
73
|
},
|
59
74
|
MultiBarsTriangle: {
|
@@ -0,0 +1,113 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
|
7
|
+
export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
8
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
+
name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE',
|
10
|
+
description: 'Simple 2 groups of Line Area chart',
|
11
|
+
descriptionZh: '簡單2組區域折線圖',
|
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: 60,
|
32
|
+
bottom: 80,
|
33
|
+
left: 60
|
34
|
+
},
|
35
|
+
},
|
36
|
+
dataFormatter: {
|
37
|
+
gridList: [
|
38
|
+
// 設定一個所有grid一起套用
|
39
|
+
{
|
40
|
+
groupAxis: {
|
41
|
+
scalePadding: 0
|
42
|
+
},
|
43
|
+
valueAxis: {
|
44
|
+
scaleRange: [0, 0.95]
|
45
|
+
},
|
46
|
+
},
|
47
|
+
],
|
48
|
+
separateGrid: true,
|
49
|
+
// container: {
|
50
|
+
// gap: 40
|
51
|
+
// }
|
52
|
+
},
|
53
|
+
pluginParams: {
|
54
|
+
MultiGroupAxis: {
|
55
|
+
// tickTextRotate: -30,
|
56
|
+
gridIndexes: 'all'
|
57
|
+
},
|
58
|
+
MultiValueAxis: {
|
59
|
+
gridIndexes: 'all'
|
60
|
+
},
|
61
|
+
MultiStackedValueAxis: {
|
62
|
+
gridIndexes: 'all'
|
63
|
+
},
|
64
|
+
MultiBars: {
|
65
|
+
gridIndexes: 'all'
|
66
|
+
},
|
67
|
+
MultiStackedBars: {
|
68
|
+
gridIndexes: 'all'
|
69
|
+
},
|
70
|
+
MultiBarsTriangle: {
|
71
|
+
gridIndexes: 'all'
|
72
|
+
},
|
73
|
+
MultiLines: {
|
74
|
+
gridIndexes: 'all'
|
75
|
+
},
|
76
|
+
MultiLineAreas: {
|
77
|
+
gridIndexes: 'all'
|
78
|
+
},
|
79
|
+
MultiDots: {
|
80
|
+
gridIndexes: 'all'
|
81
|
+
},
|
82
|
+
MultiGridLegend: {
|
83
|
+
placement: 'bottom',
|
84
|
+
padding: 7,
|
85
|
+
gridList: [
|
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
|
+
listRectHeight: 2,
|
109
|
+
}
|
110
|
+
]
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
package/src/multiGrid/index.ts
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
export { PRESET_MULTI_GRID_BASIC } from './PRESET_MULTI_GRID_BASIC'
|
2
|
+
export { PRESET_MULTI_GRID_DIVERGING_SIMPLE } from './PRESET_MULTI_GRID_DIVERGING_SIMPLE'
|
2
3
|
export { PRESET_MULTI_GRID_DIVERGING } from './PRESET_MULTI_GRID_DIVERGING'
|
4
|
+
export { PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE } from './PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE'
|
3
5
|
export { PRESET_MULTI_GRID_ROUND_STYLE } from './PRESET_MULTI_GRID_ROUND_STYLE'
|
6
|
+
export { PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE'
|
4
7
|
export { PRESET_MULTI_GRID_SEPARATE_GRID } from './PRESET_MULTI_GRID_SEPARATE_GRID'
|
8
|
+
export { PRESET_MULTI_GRID_SIMPLE } from './PRESET_MULTI_GRID_SIMPLE'
|
9
|
+
export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE'
|
5
10
|
export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID'
|
11
|
+
export { PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE'
|
6
12
|
export { PRESET_MULTI_LINES_SEPARATE_GRID } from './PRESET_MULTI_LINES_SEPARATE_GRID'
|
@@ -1,20 +1,36 @@
|
|
1
1
|
import type { PresetPartial } from '../../lib/core-types'
|
2
2
|
import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
-
// import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
3
|
|
5
4
|
export const PRESET_MULTI_VALUE_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
|
6
5
|
& Partial<PresetNoneDataPluginParams>> = {
|
7
6
|
name: 'PRESET_MULTI_VALUE_BASIC',
|
8
|
-
description: '
|
7
|
+
description: 'Basic MultiValue',
|
8
|
+
descriptionZh: '基本MultiValue參數',
|
9
9
|
chartParams: {
|
10
|
+
colors: {
|
11
|
+
light: {
|
12
|
+
label: [
|
13
|
+
"#7DD3C4",
|
14
|
+
"#FFA0A0",
|
15
|
+
"#6CBAFF",
|
16
|
+
"#55D339",
|
17
|
+
"#F9B052",
|
18
|
+
"#FF6C6C",
|
19
|
+
"#8E6BC9",
|
20
|
+
"#0088FF",
|
21
|
+
"#904026",
|
22
|
+
"#C4C4C4"
|
23
|
+
],
|
24
|
+
}
|
25
|
+
},
|
10
26
|
padding: {
|
11
|
-
top:
|
12
|
-
right:
|
13
|
-
bottom:
|
14
|
-
left:
|
27
|
+
top: 40,
|
28
|
+
right: 40,
|
29
|
+
bottom: 100,
|
30
|
+
left: 80
|
15
31
|
},
|
16
32
|
},
|
17
|
-
|
33
|
+
pluginParams: {
|
18
34
|
MultiValueLegend: {
|
19
35
|
placement: 'bottom',
|
20
36
|
padding: 14,
|