@orbcharts/presets-basic 3.0.1 → 3.0.3
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 +1058 -450
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_ALL_ITEMS.d.ts +4 -0
- package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_BASIC.d.ts +4 -0
- package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_LINEAR_OPACITY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_SEPARATE_CATEGORY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_SIMPLE.d.ts +4 -0
- package/dist/src/multiValue/index.d.ts +6 -0
- package/dist/src/series/PRESET_BUBBLES_SEPARATE_ALL.d.ts +4 -0
- package/dist/src/series/PRESET_BUBBLES_SEPARATE_LABEL.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_SEPARATE_LABEL.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SEPARATE_ALL.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SEPARATE_LABEL.d.ts +4 -0
- package/dist/src/series/index.d.ts +5 -0
- package/dist/src/types.d.ts +15 -3
- package/package.json +3 -3
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +6 -8
- package/src/grid/PRESET_BARS_ROUND.ts +0 -2
- package/src/grid/PRESET_BARS_THIN.ts +0 -2
- package/src/grid/PRESET_GRID_BASIC.ts +0 -5
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +6 -19
- package/src/grid/PRESET_GRID_PN_SCALE.ts +4 -11
- package/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.ts +0 -4
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +1 -6
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +6 -10
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +1 -1
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +5 -11
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +1 -1
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +5 -1
- package/src/grid/PRESET_LINE_AREAS_SIMPLE.ts +2 -2
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +1 -1
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.ts +1 -1
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.ts +4 -0
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +5 -1
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.ts +2 -1
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +5 -1
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.ts +2 -1
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +5 -5
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.ts +4 -3
- package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +5 -1
- package/src/multiValue/PRESET_ORDINAL_BUBBLES_ALL_ITEMS.ts +57 -0
- package/src/multiValue/PRESET_ORDINAL_BUBBLES_BASIC.ts +56 -0
- package/src/multiValue/PRESET_ORDINAL_BUBBLES_LINEAR_OPACITY.ts +59 -0
- package/src/multiValue/PRESET_ORDINAL_BUBBLES_SCALING_BY_RADIUS.ts +59 -0
- package/src/multiValue/PRESET_ORDINAL_BUBBLES_SEPARATE_CATEGORY.ts +66 -0
- package/src/multiValue/PRESET_ORDINAL_BUBBLES_SIMPLE.ts +59 -0
- package/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.ts +1 -1
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +5 -1
- package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +5 -1
- package/src/multiValue/index.ts +6 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +12 -12
- package/src/series/PRESET_BUBBLES_SEPARATE_ALL.ts +69 -0
- package/src/series/PRESET_BUBBLES_SEPARATE_LABEL.ts +66 -0
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +13 -5
- package/src/series/PRESET_PIE_SEPARATE_LABEL.ts +52 -0
- package/src/series/PRESET_ROSE_SEPARATE_ALL.ts +55 -0
- package/src/series/PRESET_ROSE_SEPARATE_LABEL.ts +58 -0
- package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +0 -2
- package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +0 -2
- package/src/series/index.ts +5 -0
- package/src/tree/PRESET_TREE_MAP_BASIC.ts +0 -4
- package/src/types.ts +25 -1
- package/dist/src/params.d.ts +0 -9
- package/src/params.ts +0 -84
@@ -2,7 +2,6 @@ import type { PresetPartial } from '../../lib/core-types'
|
|
2
2
|
import type { PresetGridPluginParams,
|
3
3
|
PresetNoneDataPluginParams
|
4
4
|
} from '../types'
|
5
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
5
|
|
7
6
|
export const PRESET_BARS_ROUND: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
7
|
& Partial<PresetNoneDataPluginParams>> = {
|
@@ -48,7 +47,6 @@ export const PRESET_BARS_ROUND: PresetPartial<'grid', Partial<PresetGridPluginPa
|
|
48
47
|
},
|
49
48
|
},
|
50
49
|
pluginParams: {
|
51
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
52
50
|
Bars: {
|
53
51
|
barWidth: 0,
|
54
52
|
barPadding: 1,
|
@@ -2,7 +2,6 @@ import type { PresetPartial } from '../../lib/core-types'
|
|
2
2
|
import type { PresetGridPluginParams,
|
3
3
|
PresetNoneDataPluginParams
|
4
4
|
} from '../types'
|
5
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
5
|
|
7
6
|
export const PRESET_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
7
|
& Partial<PresetNoneDataPluginParams>> = {
|
@@ -48,7 +47,6 @@ export const PRESET_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginPar
|
|
48
47
|
},
|
49
48
|
},
|
50
49
|
pluginParams: {
|
51
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
52
50
|
Bars: {
|
53
51
|
barWidth: 20,
|
54
52
|
barPadding: 1,
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { PresetPartial } from '../../lib/core-types'
|
2
2
|
import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
-
// import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
3
|
|
5
4
|
export const PRESET_GRID_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
6
5
|
& Partial<PresetNoneDataPluginParams>> = {
|
@@ -46,11 +45,7 @@ export const PRESET_GRID_BASIC: PresetPartial<'grid', Partial<PresetGridPluginPa
|
|
46
45
|
},
|
47
46
|
},
|
48
47
|
pluginParams: {
|
49
|
-
// ...ALL_PLUGIN_PARAMS_GRID,
|
50
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
51
48
|
GridLegend: {
|
52
|
-
// position: 'bottom',
|
53
|
-
// justify: 'center',
|
54
49
|
placement: 'bottom',
|
55
50
|
padding: 14,
|
56
51
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { PresetPartial } from '../../lib/core-types'
|
2
2
|
import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
-
// import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
3
|
|
5
4
|
export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
6
5
|
& Partial<PresetNoneDataPluginParams>> = {
|
@@ -47,27 +46,15 @@ export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPlu
|
|
47
46
|
},
|
48
47
|
},
|
49
48
|
dataFormatter: {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
},
|
57
|
-
groupAxis: {
|
58
|
-
position: 'left'
|
59
|
-
// position: 'right'
|
60
|
-
// position: 'bottom'
|
61
|
-
// position: 'top'
|
62
|
-
},
|
63
|
-
// }
|
49
|
+
valueAxis: {
|
50
|
+
position: 'bottom'
|
51
|
+
},
|
52
|
+
groupAxis: {
|
53
|
+
position: 'left'
|
54
|
+
},
|
64
55
|
},
|
65
56
|
pluginParams: {
|
66
|
-
// ...ALL_PLUGIN_PARAMS_GRID,
|
67
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
68
57
|
GridLegend: {
|
69
|
-
// position: 'bottom',
|
70
|
-
// justify: 'center',
|
71
58
|
placement: 'bottom',
|
72
59
|
padding: 14,
|
73
60
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { PresetPartial } from '../../lib/core-types'
|
2
2
|
import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
-
// import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
3
|
|
5
4
|
export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
6
5
|
& Partial<PresetNoneDataPluginParams>> = {
|
@@ -46,19 +45,13 @@ export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', Partial<PresetGridPlugi
|
|
46
45
|
},
|
47
46
|
},
|
48
47
|
dataFormatter: {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
},
|
54
|
-
// }
|
48
|
+
valueAxis: {
|
49
|
+
scaleDomain: ['auto', 'auto'],
|
50
|
+
scaleRange: [0.05, 0.95],
|
51
|
+
},
|
55
52
|
},
|
56
53
|
pluginParams: {
|
57
|
-
// ...ALL_PLUGIN_PARAMS_GRID,
|
58
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
59
54
|
GridLegend: {
|
60
|
-
// position: 'bottom',
|
61
|
-
// justify: 'center',
|
62
55
|
placement: 'bottom',
|
63
56
|
padding: 14,
|
64
57
|
}
|
@@ -51,11 +51,7 @@ export const PRESET_GRID_PN_SCALE_SIMPLE: PresetPartial<'grid', Partial<PresetGr
|
|
51
51
|
},
|
52
52
|
},
|
53
53
|
pluginParams: {
|
54
|
-
// ...ALL_PLUGIN_PARAMS_GRID,
|
55
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
56
54
|
GridLegend: {
|
57
|
-
// position: 'bottom',
|
58
|
-
// justify: 'center',
|
59
55
|
placement: 'bottom',
|
60
56
|
padding: 7,
|
61
57
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { PresetPartial } from '../../lib/core-types'
|
2
2
|
import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
-
// import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
3
|
|
5
4
|
export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
6
5
|
& Partial<PresetNoneDataPluginParams>> = {
|
@@ -42,13 +41,11 @@ export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<Preset
|
|
42
41
|
padding: {
|
43
42
|
top: 40,
|
44
43
|
right: 40,
|
45
|
-
bottom:
|
44
|
+
bottom: 120,
|
46
45
|
left: 80
|
47
46
|
},
|
48
47
|
},
|
49
48
|
pluginParams: {
|
50
|
-
// ...ALL_PLUGIN_PARAMS_GRID,
|
51
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
52
49
|
GroupAux: {
|
53
50
|
labelRotate: -30
|
54
51
|
},
|
@@ -57,8 +54,6 @@ export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<Preset
|
|
57
54
|
tickTextRotate: -30
|
58
55
|
},
|
59
56
|
GridLegend: {
|
60
|
-
// position: 'bottom',
|
61
|
-
// justify: 'center',
|
62
57
|
placement: 'bottom',
|
63
58
|
padding: 14,
|
64
59
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { PresetPartial } from '../../lib/core-types'
|
2
2
|
import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
-
// import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
3
|
|
5
4
|
export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
6
5
|
& Partial<PresetNoneDataPluginParams>> = {
|
@@ -41,19 +40,18 @@ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGr
|
|
41
40
|
padding: {
|
42
41
|
top: 40,
|
43
42
|
right: 40,
|
44
|
-
bottom:
|
43
|
+
bottom: 120,
|
45
44
|
left: 80
|
46
45
|
},
|
47
46
|
},
|
48
47
|
dataFormatter: {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
48
|
+
separateSeries: true,
|
49
|
+
container: {
|
50
|
+
columnGap: 100,
|
51
|
+
rowGap: 80
|
52
|
+
}
|
53
53
|
},
|
54
54
|
pluginParams: {
|
55
|
-
// ...ALL_PLUGIN_PARAMS_GRID,
|
56
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
57
55
|
GroupAux: {
|
58
56
|
labelRotate: -30
|
59
57
|
},
|
@@ -62,8 +60,6 @@ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGr
|
|
62
60
|
tickTextRotate: -30
|
63
61
|
},
|
64
62
|
GridLegend: {
|
65
|
-
// position: 'bottom',
|
66
|
-
// justify: 'center',
|
67
63
|
placement: 'bottom',
|
68
64
|
padding: 14,
|
69
65
|
}
|
@@ -41,9 +41,9 @@ export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', Partial<PresetGridPl
|
|
41
41
|
},
|
42
42
|
padding: {
|
43
43
|
top: 40,
|
44
|
-
right:
|
44
|
+
right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
|
45
45
|
bottom: 100,
|
46
|
-
left:
|
46
|
+
left: 60
|
47
47
|
},
|
48
48
|
highlightTarget: 'series'
|
49
49
|
},
|
@@ -2,7 +2,6 @@ import type { PresetPartial } from '../../lib/core-types'
|
|
2
2
|
import type { PresetGridPluginParams,
|
3
3
|
PresetNoneDataPluginParams
|
4
4
|
} from '../types'
|
5
|
-
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
5
|
|
7
6
|
export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
7
|
& Partial<PresetNoneDataPluginParams>> = {
|
@@ -42,21 +41,18 @@ export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPl
|
|
42
41
|
},
|
43
42
|
padding: {
|
44
43
|
top: 40,
|
45
|
-
right:
|
44
|
+
right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
|
46
45
|
bottom: 100,
|
47
|
-
left:
|
46
|
+
left: 60
|
48
47
|
},
|
49
48
|
highlightTarget: 'series'
|
50
49
|
},
|
51
50
|
dataFormatter: {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
}
|
56
|
-
// }
|
51
|
+
groupAxis: {
|
52
|
+
scalePadding: 0
|
53
|
+
}
|
57
54
|
},
|
58
55
|
pluginParams: {
|
59
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
60
56
|
Lines: {
|
61
57
|
lineCurve: 'curveMonotoneX',
|
62
58
|
lineWidth: 3
|
@@ -69,8 +65,6 @@ export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPl
|
|
69
65
|
ValueAxis: {},
|
70
66
|
GroupAux: {},
|
71
67
|
GridLegend: {
|
72
|
-
// position: 'bottom',
|
73
|
-
// justify: 'center',
|
74
68
|
placement: 'bottom',
|
75
69
|
padding: 14,
|
76
70
|
listRectHeight: 2
|
@@ -41,9 +41,9 @@ export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', Parti
|
|
41
41
|
},
|
42
42
|
padding: {
|
43
43
|
top: 40,
|
44
|
-
right:
|
44
|
+
right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
|
45
45
|
bottom: 100,
|
46
|
-
left:
|
46
|
+
left: 60
|
47
47
|
},
|
48
48
|
highlightTarget: 'group'
|
49
49
|
},
|
@@ -41,9 +41,9 @@ export const PRESET_LINE_AREAS_LOOSE_TICKS: PresetPartial<'grid', Partial<Preset
|
|
41
41
|
},
|
42
42
|
padding: {
|
43
43
|
top: 40,
|
44
|
-
right:
|
44
|
+
right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
|
45
45
|
bottom: 100,
|
46
|
-
left:
|
46
|
+
left: 60
|
47
47
|
},
|
48
48
|
highlightTarget: 'series'
|
49
49
|
},
|
@@ -42,7 +42,7 @@ export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<Pr
|
|
42
42
|
padding: {
|
43
43
|
top: 40,
|
44
44
|
right: 40,
|
45
|
-
bottom:
|
45
|
+
bottom: 120,
|
46
46
|
left: 80
|
47
47
|
},
|
48
48
|
highlightTarget: 'series'
|
@@ -51,6 +51,10 @@ export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<Pr
|
|
51
51
|
separateSeries: true,
|
52
52
|
groupAxis: {
|
53
53
|
scalePadding: 0
|
54
|
+
},
|
55
|
+
container: {
|
56
|
+
columnGap: 100,
|
57
|
+
rowGap: 80
|
54
58
|
}
|
55
59
|
},
|
56
60
|
pluginParams: {
|
@@ -41,9 +41,9 @@ export const PRESET_LINE_AREAS_SIMPLE: PresetPartial<'grid', Partial<PresetGridP
|
|
41
41
|
},
|
42
42
|
padding: {
|
43
43
|
top: 40,
|
44
|
-
right:
|
44
|
+
right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
|
45
45
|
bottom: 80,
|
46
|
-
left:
|
46
|
+
left: 60 // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
|
47
47
|
},
|
48
48
|
highlightTarget: 'series'
|
49
49
|
},
|
@@ -43,12 +43,16 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
|
|
43
43
|
padding: {
|
44
44
|
top: 40,
|
45
45
|
right: 40,
|
46
|
-
bottom:
|
46
|
+
bottom: 120,
|
47
47
|
left: 80
|
48
48
|
},
|
49
49
|
},
|
50
50
|
dataFormatter: {
|
51
51
|
separateGrid: true,
|
52
|
+
container: {
|
53
|
+
columnGap: 100,
|
54
|
+
rowGap: 80
|
55
|
+
}
|
52
56
|
},
|
53
57
|
pluginParams: {
|
54
58
|
MultiGroupAxis: {
|
@@ -43,12 +43,16 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
|
|
43
43
|
padding: {
|
44
44
|
top: 40,
|
45
45
|
right: 40,
|
46
|
-
bottom:
|
46
|
+
bottom: 120,
|
47
47
|
left: 80
|
48
48
|
},
|
49
49
|
},
|
50
50
|
dataFormatter: {
|
51
51
|
separateGrid: true,
|
52
|
+
container: {
|
53
|
+
columnGap: 100,
|
54
|
+
rowGap: 80
|
55
|
+
}
|
52
56
|
},
|
53
57
|
pluginParams: {
|
54
58
|
MultiGroupAxis: {
|
@@ -43,7 +43,7 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
|
|
43
43
|
padding: {
|
44
44
|
top: 40,
|
45
45
|
right: 40,
|
46
|
-
bottom:
|
46
|
+
bottom: 120,
|
47
47
|
left: 80
|
48
48
|
},
|
49
49
|
},
|
@@ -63,10 +63,10 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
|
|
63
63
|
}
|
64
64
|
],
|
65
65
|
separateGrid: true,
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
66
|
+
container: {
|
67
|
+
columnGap: 100,
|
68
|
+
rowGap: 80
|
69
|
+
}
|
70
70
|
},
|
71
71
|
pluginParams: {
|
72
72
|
MultiGroupAxis: {
|
@@ -42,9 +42,9 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE: PresetPartial<'multiG
|
|
42
42
|
},
|
43
43
|
padding: {
|
44
44
|
top: 40,
|
45
|
-
right:
|
45
|
+
right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
|
46
46
|
bottom: 80,
|
47
|
-
left:
|
47
|
+
left: 60 // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
|
48
48
|
},
|
49
49
|
},
|
50
50
|
dataFormatter: {
|
@@ -61,7 +61,8 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE: PresetPartial<'multiG
|
|
61
61
|
],
|
62
62
|
separateGrid: true,
|
63
63
|
container: {
|
64
|
-
|
64
|
+
columnGap: 60,
|
65
|
+
rowGap: 60
|
65
66
|
}
|
66
67
|
},
|
67
68
|
pluginParams: {
|
@@ -45,7 +45,11 @@ export const PRESET_MULTI_VALUE_SEPARATE_CATEGORY: PresetPartial<'multiValue', P
|
|
45
45
|
},
|
46
46
|
},
|
47
47
|
dataFormatter: {
|
48
|
-
separateCategory: true
|
48
|
+
separateCategory: true,
|
49
|
+
container: {
|
50
|
+
columnGap: 100,
|
51
|
+
rowGap: 80
|
52
|
+
}
|
49
53
|
},
|
50
54
|
pluginParams: {
|
51
55
|
XYAxes: {
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
|
4
|
+
export const PRESET_ORDINAL_BUBBLES_ALL_ITEMS: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
|
5
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
6
|
+
name: 'PRESET_ORDINAL_BUBBLES_ALL_ITEMS',
|
7
|
+
description: 'Ordinal bubbles with all items',
|
8
|
+
descriptionZh: '顯示全部項目的序數泡泡圖',
|
9
|
+
chartParams: {
|
10
|
+
colors: {
|
11
|
+
light: {
|
12
|
+
label: [
|
13
|
+
"#0088FF",
|
14
|
+
"#FF3232",
|
15
|
+
"#38BEA8",
|
16
|
+
"#6F3BD5",
|
17
|
+
"#314285",
|
18
|
+
"#42C724",
|
19
|
+
"#D52580",
|
20
|
+
"#F4721B",
|
21
|
+
"#D117EA",
|
22
|
+
"#7E7D7D"
|
23
|
+
],
|
24
|
+
},
|
25
|
+
dark: {
|
26
|
+
label: [
|
27
|
+
"#4BABFF",
|
28
|
+
"#FF6C6C",
|
29
|
+
"#7DD3C4",
|
30
|
+
"#8E6BC9",
|
31
|
+
"#5366AC",
|
32
|
+
"#86DC72",
|
33
|
+
"#FF72BB",
|
34
|
+
"#F9B052",
|
35
|
+
"#EF76FF",
|
36
|
+
"#C4C4C4"
|
37
|
+
]
|
38
|
+
}
|
39
|
+
},
|
40
|
+
padding: {
|
41
|
+
top: 60,
|
42
|
+
right: 40,
|
43
|
+
bottom: 60,
|
44
|
+
left: 160
|
45
|
+
},
|
46
|
+
},
|
47
|
+
pluginParams: {
|
48
|
+
OrdinalBubbles: {
|
49
|
+
rankingAmount: 'auto',
|
50
|
+
},
|
51
|
+
MultiValueLegend: {
|
52
|
+
placement: 'bottom',
|
53
|
+
padding: 14,
|
54
|
+
listRectRadius: 7 // 圓型圖例列點
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
|
4
|
+
export const PRESET_ORDINAL_BUBBLES_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
|
5
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
6
|
+
name: 'PRESET_ORDINAL_BUBBLES_BASIC',
|
7
|
+
description: 'Basic ordinal bubbles',
|
8
|
+
descriptionZh: '序數泡泡圖',
|
9
|
+
chartParams: {
|
10
|
+
colors: {
|
11
|
+
light: {
|
12
|
+
label: [
|
13
|
+
"#0088FF",
|
14
|
+
"#FF3232",
|
15
|
+
"#38BEA8",
|
16
|
+
"#6F3BD5",
|
17
|
+
"#314285",
|
18
|
+
"#42C724",
|
19
|
+
"#D52580",
|
20
|
+
"#F4721B",
|
21
|
+
"#D117EA",
|
22
|
+
"#7E7D7D"
|
23
|
+
],
|
24
|
+
},
|
25
|
+
dark: {
|
26
|
+
label: [
|
27
|
+
"#4BABFF",
|
28
|
+
"#FF6C6C",
|
29
|
+
"#7DD3C4",
|
30
|
+
"#8E6BC9",
|
31
|
+
"#5366AC",
|
32
|
+
"#86DC72",
|
33
|
+
"#FF72BB",
|
34
|
+
"#F9B052",
|
35
|
+
"#EF76FF",
|
36
|
+
"#C4C4C4"
|
37
|
+
]
|
38
|
+
}
|
39
|
+
},
|
40
|
+
padding: {
|
41
|
+
top: 60,
|
42
|
+
right: 40,
|
43
|
+
bottom: 60,
|
44
|
+
left: 160
|
45
|
+
},
|
46
|
+
},
|
47
|
+
pluginParams: {
|
48
|
+
OrdinalBubbles: {
|
49
|
+
},
|
50
|
+
MultiValueLegend: {
|
51
|
+
placement: 'bottom',
|
52
|
+
padding: 14,
|
53
|
+
listRectRadius: 7 // 圓型圖例列點
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|