@orbcharts/presets-basic 3.0.0-alpha.29 → 3.0.0-alpha.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +1 -1
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/package.json +44 -44
  5. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -62
  6. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -59
  7. package/src/grid/PRESET_BARS_ROUND.ts +46 -46
  8. package/src/grid/PRESET_BARS_THIN.ts +43 -43
  9. package/src/grid/PRESET_GRID_BASIC.ts +25 -25
  10. package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -42
  11. package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -33
  12. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -33
  13. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -38
  14. package/src/grid/PRESET_LINES_BASIC.ts +44 -44
  15. package/src/grid/PRESET_LINES_CURVE.ts +47 -47
  16. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -46
  17. package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -60
  18. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -46
  19. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -49
  20. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -48
  21. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -54
  22. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -59
  23. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -58
  24. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -58
  25. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -56
  26. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -59
  27. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -61
  28. package/src/grid/index.ts +22 -22
  29. package/src/index.ts +4 -4
  30. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -36
  31. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -85
  32. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -57
  33. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -59
  34. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -103
  35. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -121
  36. package/src/multiGrid/index.ts +6 -6
  37. package/src/params.ts +56 -56
  38. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -19
  39. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
  40. package/src/series/PRESET_PIE_DONUT.ts +23 -23
  41. package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
  42. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
  43. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +23 -23
  44. package/src/series/PRESET_SERIES_BASIC.ts +15 -15
  45. package/src/series/PRESET_SERIES_DESC.ts +15 -15
  46. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +15 -15
  47. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +16 -16
  48. package/src/series/PRESET_SERIES_SUM_SERIES.ts +15 -15
  49. package/src/series/index.ts +11 -11
  50. package/src/tree/PRESET_TREE_BASIC.ts +25 -25
  51. package/src/types.ts +241 -241
  52. package/tsconfig.base.json +13 -13
  53. package/tsconfig.json +8 -8
  54. package/tsconfig.prod.json +2 -2
  55. package/vite.config.mjs +41 -41
@@ -1,62 +1,62 @@
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_ROUND: PresetPartial<'grid', PresetBarsParams
12
- & PresetGroupAxisParams
13
- & PresetValueAxisParams
14
- & PresetGroupAuxParams
15
- & PresetGridLegendParams
16
- & PresetNoneDataPluginParams> = {
17
- name: 'PRESET_BARS_HORIZONTAL_AND_ROUND',
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: 0,
47
- barPadding: 1,
48
- barGroupPadding: 10,
49
- barRadius: true,
50
- },
51
- GroupAxis: {},
52
- ValueAxis: {},
53
- GroupAux: {},
54
- GridLegend: {
55
- // 底部圖例及圓弧列點
56
- position: 'bottom',
57
- justify: 'center',
58
- padding: 14,
59
- listRectRadius: 7,
60
- }
61
- }
62
- }
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_ROUND: PresetPartial<'grid', PresetBarsParams
12
+ & PresetGroupAxisParams
13
+ & PresetValueAxisParams
14
+ & PresetGroupAuxParams
15
+ & PresetGridLegendParams
16
+ & PresetNoneDataPluginParams> = {
17
+ name: 'PRESET_BARS_HORIZONTAL_AND_ROUND',
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: 0,
47
+ barPadding: 1,
48
+ barGroupPadding: 10,
49
+ barRadius: true,
50
+ },
51
+ GroupAxis: {},
52
+ ValueAxis: {},
53
+ GroupAux: {},
54
+ GridLegend: {
55
+ // 底部圖例及圓弧列點
56
+ position: 'bottom',
57
+ justify: 'center',
58
+ padding: 14,
59
+ listRectRadius: 7,
60
+ }
61
+ }
62
+ }
@@ -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
+ }