@orbcharts/presets-basic 3.0.0-alpha.32 → 3.0.0-alpha.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/LICENSE +200 -200
  2. package/package.json +43 -43
  3. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -62
  4. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -59
  5. package/src/grid/PRESET_BARS_ROUND.ts +46 -46
  6. package/src/grid/PRESET_BARS_THIN.ts +43 -43
  7. package/src/grid/PRESET_GRID_BASIC.ts +25 -25
  8. package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -42
  9. package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -33
  10. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -33
  11. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -38
  12. package/src/grid/PRESET_LINES_BASIC.ts +44 -44
  13. package/src/grid/PRESET_LINES_CURVE.ts +47 -47
  14. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -46
  15. package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -60
  16. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -46
  17. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -49
  18. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -48
  19. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -54
  20. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -59
  21. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -58
  22. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -58
  23. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -56
  24. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -59
  25. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -61
  26. package/src/grid/index.ts +22 -22
  27. package/src/index.ts +4 -4
  28. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -36
  29. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -85
  30. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -57
  31. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -59
  32. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -103
  33. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -121
  34. package/src/multiGrid/index.ts +6 -6
  35. package/src/params.ts +56 -56
  36. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -19
  37. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
  38. package/src/series/PRESET_PIE_DONUT.ts +23 -23
  39. package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
  40. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
  41. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +23 -23
  42. package/src/series/PRESET_SERIES_BASIC.ts +15 -15
  43. package/src/series/PRESET_SERIES_DESC.ts +15 -15
  44. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +15 -15
  45. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +16 -16
  46. package/src/series/PRESET_SERIES_SUM_SERIES.ts +15 -15
  47. package/src/series/index.ts +11 -11
  48. package/src/tree/PRESET_TREE_BASIC.ts +25 -25
  49. package/src/types.ts +241 -241
  50. package/tsconfig.base.json +13 -13
  51. package/tsconfig.json +2 -2
  52. package/vite.config.js +22 -22
@@ -1,59 +1,59 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetBarsParams,
3
- PresetGroupAxisParams,
4
- PresetValueAxisParams,
5
- PresetGroupAuxParams,
6
- PresetGridLegendParams,
7
- PresetNoneDataPluginParams
8
- } from '../types'
9
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
10
-
11
- export const PRESET_BARS_HORIZONTAL_AND_THIN: PresetPartial<'grid', PresetBarsParams
12
- & PresetGroupAxisParams
13
- & PresetValueAxisParams
14
- & PresetGroupAuxParams
15
- & PresetGridLegendParams
16
- & PresetNoneDataPluginParams> = {
17
- name: 'PRESET_BARS_HORIZONTAL_AND_THIN',
18
- description: '橫向細長長條圖',
19
- chartParams: {
20
- padding: {
21
- top: 60,
22
- right: 60,
23
- bottom: 120,
24
- left: 160
25
- },
26
- },
27
- dataFormatter: {
28
- grid: {
29
- valueAxis: {
30
- position: 'bottom'
31
- // position: 'top'
32
- // position: 'left'
33
- // position: 'right'
34
- },
35
- groupAxis: {
36
- position: 'left'
37
- // position: 'right'
38
- // position: 'bottom'
39
- // position: 'top'
40
- },
41
- }
42
- },
43
- allPluginParams: {
44
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
45
- Bars: {
46
- barWidth: 20,
47
- barPadding: 1,
48
- barGroupPadding: 10
49
- },
50
- GroupAxis: {},
51
- ValueAxis: {},
52
- GroupAux: {},
53
- GridLegend: {
54
- position: 'bottom',
55
- justify: 'center',
56
- padding: 14,
57
- }
58
- }
59
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetBarsParams,
3
+ PresetGroupAxisParams,
4
+ PresetValueAxisParams,
5
+ PresetGroupAuxParams,
6
+ PresetGridLegendParams,
7
+ PresetNoneDataPluginParams
8
+ } from '../types'
9
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
10
+
11
+ export const PRESET_BARS_HORIZONTAL_AND_THIN: PresetPartial<'grid', PresetBarsParams
12
+ & PresetGroupAxisParams
13
+ & PresetValueAxisParams
14
+ & PresetGroupAuxParams
15
+ & PresetGridLegendParams
16
+ & PresetNoneDataPluginParams> = {
17
+ name: 'PRESET_BARS_HORIZONTAL_AND_THIN',
18
+ description: '橫向細長長條圖',
19
+ chartParams: {
20
+ padding: {
21
+ top: 60,
22
+ right: 60,
23
+ bottom: 120,
24
+ left: 160
25
+ },
26
+ },
27
+ dataFormatter: {
28
+ grid: {
29
+ valueAxis: {
30
+ position: 'bottom'
31
+ // position: 'top'
32
+ // position: 'left'
33
+ // position: 'right'
34
+ },
35
+ groupAxis: {
36
+ position: 'left'
37
+ // position: 'right'
38
+ // position: 'bottom'
39
+ // position: 'top'
40
+ },
41
+ }
42
+ },
43
+ allPluginParams: {
44
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
45
+ Bars: {
46
+ barWidth: 20,
47
+ barPadding: 1,
48
+ barGroupPadding: 10
49
+ },
50
+ GroupAxis: {},
51
+ ValueAxis: {},
52
+ GroupAux: {},
53
+ GridLegend: {
54
+ position: 'bottom',
55
+ justify: 'center',
56
+ padding: 14,
57
+ }
58
+ }
59
+ }
@@ -1,46 +1,46 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetBarsParams,
3
- PresetGroupAxisParams,
4
- PresetValueAxisParams,
5
- PresetGroupAuxParams,
6
- PresetGridLegendParams,
7
- PresetNoneDataPluginParams
8
- } from '../types'
9
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
10
-
11
- export const PRESET_BARS_ROUND: PresetPartial<'grid', PresetBarsParams
12
- & PresetGroupAxisParams
13
- & PresetValueAxisParams
14
- & PresetGroupAuxParams
15
- & PresetGridLegendParams
16
- & PresetNoneDataPluginParams> = {
17
- name: 'PRESET_BARS_ROUND',
18
- description: '圓角長條圖',
19
- chartParams: {
20
- padding: {
21
- top: 60,
22
- right: 60,
23
- bottom: 120,
24
- left: 60
25
- },
26
- },
27
- allPluginParams: {
28
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
29
- Bars: {
30
- barWidth: 0,
31
- barPadding: 1,
32
- barGroupPadding: 10,
33
- barRadius: true,
34
- },
35
- GroupAxis: {},
36
- ValueAxis: {},
37
- GroupAux: {},
38
- GridLegend: {
39
- // 底部圖例及圓弧列點
40
- position: 'bottom',
41
- justify: 'center',
42
- padding: 14,
43
- listRectRadius: 7,
44
- }
45
- }
46
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetBarsParams,
3
+ PresetGroupAxisParams,
4
+ PresetValueAxisParams,
5
+ PresetGroupAuxParams,
6
+ PresetGridLegendParams,
7
+ PresetNoneDataPluginParams
8
+ } from '../types'
9
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
10
+
11
+ export const PRESET_BARS_ROUND: PresetPartial<'grid', PresetBarsParams
12
+ & PresetGroupAxisParams
13
+ & PresetValueAxisParams
14
+ & PresetGroupAuxParams
15
+ & PresetGridLegendParams
16
+ & PresetNoneDataPluginParams> = {
17
+ name: 'PRESET_BARS_ROUND',
18
+ description: '圓角長條圖',
19
+ chartParams: {
20
+ padding: {
21
+ top: 60,
22
+ right: 60,
23
+ bottom: 120,
24
+ left: 60
25
+ },
26
+ },
27
+ allPluginParams: {
28
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
29
+ Bars: {
30
+ barWidth: 0,
31
+ barPadding: 1,
32
+ barGroupPadding: 10,
33
+ barRadius: true,
34
+ },
35
+ GroupAxis: {},
36
+ ValueAxis: {},
37
+ GroupAux: {},
38
+ GridLegend: {
39
+ // 底部圖例及圓弧列點
40
+ position: 'bottom',
41
+ justify: 'center',
42
+ padding: 14,
43
+ listRectRadius: 7,
44
+ }
45
+ }
46
+ }
@@ -1,43 +1,43 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetBarsParams,
3
- PresetGroupAxisParams,
4
- PresetValueAxisParams,
5
- PresetGroupAuxParams,
6
- PresetGridLegendParams,
7
- PresetNoneDataPluginParams
8
- } from '../types'
9
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
10
-
11
- export const PRESET_BARS_THIN: PresetPartial<'grid', PresetBarsParams
12
- & PresetGroupAxisParams
13
- & PresetValueAxisParams
14
- & PresetGroupAuxParams
15
- & PresetGridLegendParams
16
- & PresetNoneDataPluginParams> = {
17
- name: 'PRESET_BARS_THIN',
18
- description: '細長條圖',
19
- chartParams: {
20
- padding: {
21
- top: 60,
22
- right: 60,
23
- bottom: 120,
24
- left: 60
25
- },
26
- },
27
- allPluginParams: {
28
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
29
- Bars: {
30
- barWidth: 20,
31
- barPadding: 1,
32
- barGroupPadding: 10
33
- },
34
- GroupAxis: {},
35
- ValueAxis: {},
36
- GroupAux: {},
37
- GridLegend: {
38
- position: 'bottom',
39
- justify: 'center',
40
- padding: 14,
41
- }
42
- }
43
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetBarsParams,
3
+ PresetGroupAxisParams,
4
+ PresetValueAxisParams,
5
+ PresetGroupAuxParams,
6
+ PresetGridLegendParams,
7
+ PresetNoneDataPluginParams
8
+ } from '../types'
9
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
10
+
11
+ export const PRESET_BARS_THIN: PresetPartial<'grid', PresetBarsParams
12
+ & PresetGroupAxisParams
13
+ & PresetValueAxisParams
14
+ & PresetGroupAuxParams
15
+ & PresetGridLegendParams
16
+ & PresetNoneDataPluginParams> = {
17
+ name: 'PRESET_BARS_THIN',
18
+ description: '細長條圖',
19
+ chartParams: {
20
+ padding: {
21
+ top: 60,
22
+ right: 60,
23
+ bottom: 120,
24
+ left: 60
25
+ },
26
+ },
27
+ allPluginParams: {
28
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
29
+ Bars: {
30
+ barWidth: 20,
31
+ barPadding: 1,
32
+ barGroupPadding: 10
33
+ },
34
+ GroupAxis: {},
35
+ ValueAxis: {},
36
+ GroupAux: {},
37
+ GridLegend: {
38
+ position: 'bottom',
39
+ justify: 'center',
40
+ padding: 14,
41
+ }
42
+ }
43
+ }
@@ -1,25 +1,25 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_GRID_BASIC: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_GRID_BASIC',
7
- description: '基本Grid參數',
8
- chartParams: {
9
- padding: {
10
- top: 60,
11
- right: 60,
12
- bottom: 120,
13
- left: 60
14
- },
15
- },
16
- allPluginParams: {
17
- ...ALL_PLUGIN_PARAMS_GRID,
18
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
19
- GridLegend: {
20
- position: 'bottom',
21
- justify: 'center',
22
- padding: 14,
23
- }
24
- }
25
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_BASIC: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_GRID_BASIC',
7
+ description: '基本Grid參數',
8
+ chartParams: {
9
+ padding: {
10
+ top: 60,
11
+ right: 60,
12
+ bottom: 120,
13
+ left: 60
14
+ },
15
+ },
16
+ allPluginParams: {
17
+ ...ALL_PLUGIN_PARAMS_GRID,
18
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
19
+ GridLegend: {
20
+ position: 'bottom',
21
+ justify: 'center',
22
+ padding: 14,
23
+ }
24
+ }
25
+ }
@@ -1,42 +1,42 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_GRID_HORIZONTAL',
7
- description: '橫向圖',
8
- chartParams: {
9
- // 間距下面及左邊留空
10
- padding: {
11
- top: 60,
12
- right: 60,
13
- bottom: 120,
14
- left: 160
15
- },
16
- },
17
- dataFormatter: {
18
- grid: {
19
- valueAxis: {
20
- position: 'bottom'
21
- // position: 'top'
22
- // position: 'left'
23
- // position: 'right'
24
- },
25
- groupAxis: {
26
- position: 'left'
27
- // position: 'right'
28
- // position: 'bottom'
29
- // position: 'top'
30
- },
31
- }
32
- },
33
- allPluginParams: {
34
- ...ALL_PLUGIN_PARAMS_GRID,
35
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
36
- GridLegend: {
37
- position: 'bottom',
38
- justify: 'center',
39
- padding: 14,
40
- }
41
- }
42
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_GRID_HORIZONTAL',
7
+ description: '橫向圖',
8
+ chartParams: {
9
+ // 間距下面及左邊留空
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 160
15
+ },
16
+ },
17
+ dataFormatter: {
18
+ grid: {
19
+ valueAxis: {
20
+ position: 'bottom'
21
+ // position: 'top'
22
+ // position: 'left'
23
+ // position: 'right'
24
+ },
25
+ groupAxis: {
26
+ position: 'left'
27
+ // position: 'right'
28
+ // position: 'bottom'
29
+ // position: 'top'
30
+ },
31
+ }
32
+ },
33
+ allPluginParams: {
34
+ ...ALL_PLUGIN_PARAMS_GRID,
35
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
36
+ GridLegend: {
37
+ position: 'bottom',
38
+ justify: 'center',
39
+ padding: 14,
40
+ }
41
+ }
42
+ }
@@ -1,33 +1,33 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_GRID_PN_SCALE',
7
- description: '正負值分向圖',
8
- chartParams: {
9
- padding: {
10
- top: 60,
11
- right: 60,
12
- bottom: 120,
13
- left: 60
14
- },
15
- },
16
- dataFormatter: {
17
- grid: {
18
- valueAxis: {
19
- scaleDomain: ['auto', 'auto'],
20
- scaleRange: [0.05, 0.95],
21
- },
22
- }
23
- },
24
- allPluginParams: {
25
- ...ALL_PLUGIN_PARAMS_GRID,
26
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
27
- GridLegend: {
28
- position: 'bottom',
29
- justify: 'center',
30
- padding: 14,
31
- }
32
- }
33
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_GRID_PN_SCALE',
7
+ description: '正負值分向圖',
8
+ chartParams: {
9
+ padding: {
10
+ top: 60,
11
+ right: 60,
12
+ bottom: 120,
13
+ left: 60
14
+ },
15
+ },
16
+ dataFormatter: {
17
+ grid: {
18
+ valueAxis: {
19
+ scaleDomain: ['auto', 'auto'],
20
+ scaleRange: [0.05, 0.95],
21
+ },
22
+ }
23
+ },
24
+ allPluginParams: {
25
+ ...ALL_PLUGIN_PARAMS_GRID,
26
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
27
+ GridLegend: {
28
+ position: 'bottom',
29
+ justify: 'center',
30
+ padding: 14,
31
+ }
32
+ }
33
+ }
@@ -1,33 +1,33 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_GRID_ROTATE_AXIS_LABEL',
7
- description: '傾斜標籤',
8
- chartParams: {
9
- // 間距下面加長留空
10
- padding: {
11
- top: 60,
12
- right: 60,
13
- bottom: 160,
14
- left: 60
15
- },
16
- },
17
- allPluginParams: {
18
- ...ALL_PLUGIN_PARAMS_GRID,
19
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
20
- GroupAux: {
21
- labelRotate: -30
22
- },
23
- GroupAxis: {
24
- tickPadding: 15,
25
- tickTextRotate: -30
26
- },
27
- GridLegend: {
28
- position: 'bottom',
29
- justify: 'center',
30
- padding: 14,
31
- }
32
- }
33
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_GRID_ROTATE_AXIS_LABEL',
7
+ description: '傾斜標籤',
8
+ chartParams: {
9
+ // 間距下面加長留空
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 160,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ ...ALL_PLUGIN_PARAMS_GRID,
19
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
20
+ GroupAux: {
21
+ labelRotate: -30
22
+ },
23
+ GroupAxis: {
24
+ tickPadding: 15,
25
+ tickTextRotate: -30
26
+ },
27
+ GridLegend: {
28
+ position: 'bottom',
29
+ justify: 'center',
30
+ padding: 14,
31
+ }
32
+ }
33
+ }
@@ -1,38 +1,38 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_GRID_SEPARATE_SERIES',
7
- description: '分開顯示Series',
8
- chartParams: {
9
- padding: {
10
- top: 60,
11
- right: 60,
12
- bottom: 160,
13
- left: 60
14
- },
15
- },
16
- dataFormatter: {
17
- grid: {
18
- // seriesSlotIndexes: [0, 1],
19
- separateSeries: true,
20
- },
21
- },
22
- allPluginParams: {
23
- ...ALL_PLUGIN_PARAMS_GRID,
24
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
25
- GroupAux: {
26
- labelRotate: -30
27
- },
28
- GroupAxis: {
29
- tickPadding: 15,
30
- tickTextRotate: -30
31
- },
32
- GridLegend: {
33
- position: 'bottom',
34
- justify: 'center',
35
- padding: 14,
36
- }
37
- }
38
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', PresetGridPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_GRID_SEPARATE_SERIES',
7
+ description: '分開顯示Series',
8
+ chartParams: {
9
+ padding: {
10
+ top: 60,
11
+ right: 60,
12
+ bottom: 160,
13
+ left: 60
14
+ },
15
+ },
16
+ dataFormatter: {
17
+ grid: {
18
+ // seriesSlotIndexes: [0, 1],
19
+ separateSeries: true,
20
+ },
21
+ },
22
+ allPluginParams: {
23
+ ...ALL_PLUGIN_PARAMS_GRID,
24
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
25
+ GroupAux: {
26
+ labelRotate: -30
27
+ },
28
+ GroupAxis: {
29
+ tickPadding: 15,
30
+ tickTextRotate: -30
31
+ },
32
+ GridLegend: {
33
+ position: 'bottom',
34
+ justify: 'center',
35
+ padding: 14,
36
+ }
37
+ }
38
+ }