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

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.
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,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
+ }
@@ -1,44 +1,44 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetLinesParams,
3
- PresetDotsParams,
4
- PresetGroupAxisParams,
5
- PresetValueAxisParams,
6
- PresetGroupAuxParams,
7
- PresetGridLegendParams,
8
- PresetNoneDataPluginParams
9
- } from '../types'
10
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
-
12
- export const PRESET_LINES_BASIC: PresetPartial<'grid', PresetLinesParams
13
- & PresetDotsParams
14
- & PresetGridLegendParams
15
- & PresetGroupAxisParams
16
- & PresetValueAxisParams
17
- & PresetGroupAuxParams
18
- & PresetNoneDataPluginParams> = {
19
- name: 'PRESET_LINES_BASIC',
20
- description: '基本Lines參數',
21
- chartParams: {
22
- padding: {
23
- top: 60,
24
- right: 60,
25
- bottom: 120,
26
- left: 60
27
- },
28
- highlightTarget: 'series'
29
- },
30
- allPluginParams: {
31
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
32
- Lines: {},
33
- Dots: {},
34
- GroupAxis: {},
35
- ValueAxis: {},
36
- GroupAux: {},
37
- GridLegend: {
38
- position: 'bottom',
39
- justify: 'center',
40
- padding: 14,
41
- listRectHeight: 2
42
- }
43
- }
44
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetLinesParams,
3
+ PresetDotsParams,
4
+ PresetGroupAxisParams,
5
+ PresetValueAxisParams,
6
+ PresetGroupAuxParams,
7
+ PresetGridLegendParams,
8
+ PresetNoneDataPluginParams
9
+ } from '../types'
10
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
+
12
+ export const PRESET_LINES_BASIC: PresetPartial<'grid', PresetLinesParams
13
+ & PresetDotsParams
14
+ & PresetGridLegendParams
15
+ & PresetGroupAxisParams
16
+ & PresetValueAxisParams
17
+ & PresetGroupAuxParams
18
+ & PresetNoneDataPluginParams> = {
19
+ name: 'PRESET_LINES_BASIC',
20
+ description: '基本Lines參數',
21
+ chartParams: {
22
+ padding: {
23
+ top: 60,
24
+ right: 60,
25
+ bottom: 120,
26
+ left: 60
27
+ },
28
+ highlightTarget: 'series'
29
+ },
30
+ allPluginParams: {
31
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
32
+ Lines: {},
33
+ Dots: {},
34
+ GroupAxis: {},
35
+ ValueAxis: {},
36
+ GroupAux: {},
37
+ GridLegend: {
38
+ position: 'bottom',
39
+ justify: 'center',
40
+ padding: 14,
41
+ listRectHeight: 2
42
+ }
43
+ }
44
+ }
@@ -1,47 +1,47 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetLinesParams,
3
- PresetDotsParams,
4
- PresetGroupAxisParams,
5
- PresetValueAxisParams,
6
- PresetGroupAuxParams,
7
- PresetGridLegendParams,
8
- PresetNoneDataPluginParams
9
- } from '../types'
10
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
-
12
- export const PRESET_LINES_CURVE: PresetPartial<'grid', PresetLinesParams
13
- & PresetDotsParams
14
- & PresetGridLegendParams
15
- & PresetGroupAxisParams
16
- & PresetValueAxisParams
17
- & PresetGroupAuxParams
18
- & PresetNoneDataPluginParams> = {
19
- name: 'PRESET_LINES_CURVE',
20
- description: '弧線折線圖',
21
- chartParams: {
22
- padding: {
23
- top: 60,
24
- right: 60,
25
- bottom: 120,
26
- left: 60
27
- },
28
- highlightTarget: 'series'
29
- },
30
- allPluginParams: {
31
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
32
- Lines: {
33
- lineCurve: 'curveMonotoneX',
34
- lineWidth: 3
35
- },
36
- Dots: {},
37
- GroupAxis: {},
38
- ValueAxis: {},
39
- GroupAux: {},
40
- GridLegend: {
41
- position: 'bottom',
42
- justify: 'center',
43
- padding: 14,
44
- listRectHeight: 2
45
- }
46
- }
47
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetLinesParams,
3
+ PresetDotsParams,
4
+ PresetGroupAxisParams,
5
+ PresetValueAxisParams,
6
+ PresetGroupAuxParams,
7
+ PresetGridLegendParams,
8
+ PresetNoneDataPluginParams
9
+ } from '../types'
10
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
+
12
+ export const PRESET_LINES_CURVE: PresetPartial<'grid', PresetLinesParams
13
+ & PresetDotsParams
14
+ & PresetGridLegendParams
15
+ & PresetGroupAxisParams
16
+ & PresetValueAxisParams
17
+ & PresetGroupAuxParams
18
+ & PresetNoneDataPluginParams> = {
19
+ name: 'PRESET_LINES_CURVE',
20
+ description: '弧線折線圖',
21
+ chartParams: {
22
+ padding: {
23
+ top: 60,
24
+ right: 60,
25
+ bottom: 120,
26
+ left: 60
27
+ },
28
+ highlightTarget: 'series'
29
+ },
30
+ allPluginParams: {
31
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
32
+ Lines: {
33
+ lineCurve: 'curveMonotoneX',
34
+ lineWidth: 3
35
+ },
36
+ Dots: {},
37
+ GroupAxis: {},
38
+ ValueAxis: {},
39
+ GroupAux: {},
40
+ GridLegend: {
41
+ position: 'bottom',
42
+ justify: 'center',
43
+ padding: 14,
44
+ listRectHeight: 2
45
+ }
46
+ }
47
+ }
@@ -1,46 +1,46 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetLinesParams,
3
- PresetDotsParams,
4
- PresetGroupAxisParams,
5
- PresetValueAxisParams,
6
- PresetGroupAuxParams,
7
- PresetGridLegendParams,
8
- PresetNoneDataPluginParams
9
- } from '../types'
10
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
-
12
- export const PRESET_LINES_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', PresetLinesParams
13
- & PresetDotsParams
14
- & PresetGridLegendParams
15
- & PresetGroupAxisParams
16
- & PresetValueAxisParams
17
- & PresetGroupAuxParams
18
- & PresetNoneDataPluginParams> = {
19
- name: 'PRESET_LINES_HIGHLIGHT_GROUP_DOTS',
20
- description: '折線圖及Highlight Group圓點',
21
- chartParams: {
22
- padding: {
23
- top: 60,
24
- right: 60,
25
- bottom: 120,
26
- left: 60
27
- },
28
- highlightTarget: 'group'
29
- },
30
- allPluginParams: {
31
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
32
- Lines: {},
33
- Dots: {
34
- onlyShowHighlighted: false
35
- },
36
- GroupAxis: {},
37
- ValueAxis: {},
38
- GroupAux: {},
39
- GridLegend: {
40
- position: 'bottom',
41
- justify: 'center',
42
- padding: 14,
43
- listRectHeight: 2
44
- }
45
- }
46
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetLinesParams,
3
+ PresetDotsParams,
4
+ PresetGroupAxisParams,
5
+ PresetValueAxisParams,
6
+ PresetGroupAuxParams,
7
+ PresetGridLegendParams,
8
+ PresetNoneDataPluginParams
9
+ } from '../types'
10
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
+
12
+ export const PRESET_LINES_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', PresetLinesParams
13
+ & PresetDotsParams
14
+ & PresetGridLegendParams
15
+ & PresetGroupAxisParams
16
+ & PresetValueAxisParams
17
+ & PresetGroupAuxParams
18
+ & PresetNoneDataPluginParams> = {
19
+ name: 'PRESET_LINES_HIGHLIGHT_GROUP_DOTS',
20
+ description: '折線圖及Highlight Group圓點',
21
+ chartParams: {
22
+ padding: {
23
+ top: 60,
24
+ right: 60,
25
+ bottom: 120,
26
+ left: 60
27
+ },
28
+ highlightTarget: 'group'
29
+ },
30
+ allPluginParams: {
31
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
32
+ Lines: {},
33
+ Dots: {
34
+ onlyShowHighlighted: false
35
+ },
36
+ GroupAxis: {},
37
+ ValueAxis: {},
38
+ GroupAux: {},
39
+ GridLegend: {
40
+ position: 'bottom',
41
+ justify: 'center',
42
+ padding: 14,
43
+ listRectHeight: 2
44
+ }
45
+ }
46
+ }
@@ -1,60 +1,60 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetLinesParams,
3
- PresetDotsParams,
4
- PresetGroupAxisParams,
5
- PresetValueAxisParams,
6
- PresetGroupAuxParams,
7
- PresetGridLegendParams,
8
- PresetNoneDataPluginParams
9
- } from '../types'
10
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
-
12
- export const PRESET_LINES_HORIZONTAL: PresetPartial<'grid', PresetLinesParams
13
- & PresetDotsParams
14
- & PresetGridLegendParams
15
- & PresetGroupAxisParams
16
- & PresetValueAxisParams
17
- & PresetGroupAuxParams
18
- & PresetNoneDataPluginParams> = {
19
- name: 'PRESET_LINES_HORIZONTAL',
20
- description: '橫向折線圖',
21
- chartParams: {
22
- padding: {
23
- top: 60,
24
- right: 60,
25
- bottom: 120,
26
- left: 160
27
- },
28
- highlightTarget: 'series'
29
- },
30
- dataFormatter: {
31
- grid: {
32
- valueAxis: {
33
- position: 'bottom'
34
- // position: 'top'
35
- // position: 'left'
36
- // position: 'right'
37
- },
38
- groupAxis: {
39
- position: 'left'
40
- // position: 'right'
41
- // position: 'bottom'
42
- // position: 'top'
43
- },
44
- }
45
- },
46
- allPluginParams: {
47
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
48
- Lines: {},
49
- Dots: {},
50
- GroupAxis: {},
51
- ValueAxis: {},
52
- GroupAux: {},
53
- GridLegend: {
54
- position: 'bottom',
55
- justify: 'center',
56
- padding: 14,
57
- listRectHeight: 2
58
- }
59
- }
60
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetLinesParams,
3
+ PresetDotsParams,
4
+ PresetGroupAxisParams,
5
+ PresetValueAxisParams,
6
+ PresetGroupAuxParams,
7
+ PresetGridLegendParams,
8
+ PresetNoneDataPluginParams
9
+ } from '../types'
10
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
+
12
+ export const PRESET_LINES_HORIZONTAL: PresetPartial<'grid', PresetLinesParams
13
+ & PresetDotsParams
14
+ & PresetGridLegendParams
15
+ & PresetGroupAxisParams
16
+ & PresetValueAxisParams
17
+ & PresetGroupAuxParams
18
+ & PresetNoneDataPluginParams> = {
19
+ name: 'PRESET_LINES_HORIZONTAL',
20
+ description: '橫向折線圖',
21
+ chartParams: {
22
+ padding: {
23
+ top: 60,
24
+ right: 60,
25
+ bottom: 120,
26
+ left: 160
27
+ },
28
+ highlightTarget: 'series'
29
+ },
30
+ dataFormatter: {
31
+ grid: {
32
+ valueAxis: {
33
+ position: 'bottom'
34
+ // position: 'top'
35
+ // position: 'left'
36
+ // position: 'right'
37
+ },
38
+ groupAxis: {
39
+ position: 'left'
40
+ // position: 'right'
41
+ // position: 'bottom'
42
+ // position: 'top'
43
+ },
44
+ }
45
+ },
46
+ allPluginParams: {
47
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
48
+ Lines: {},
49
+ Dots: {},
50
+ GroupAxis: {},
51
+ ValueAxis: {},
52
+ GroupAux: {},
53
+ GridLegend: {
54
+ position: 'bottom',
55
+ justify: 'center',
56
+ padding: 14,
57
+ listRectHeight: 2
58
+ }
59
+ }
60
+ }
@@ -1,46 +1,46 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetLinesParams,
3
- PresetDotsParams,
4
- PresetGroupAxisParams,
5
- PresetValueAxisParams,
6
- PresetGroupAuxParams,
7
- PresetGridLegendParams,
8
- PresetNoneDataPluginParams
9
- } from '../types'
10
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
-
12
- export const PRESET_LINES_LOOSE_TICKS: PresetPartial<'grid', PresetLinesParams
13
- & PresetDotsParams
14
- & PresetGridLegendParams
15
- & PresetGroupAxisParams
16
- & PresetValueAxisParams
17
- & PresetGroupAuxParams
18
- & PresetNoneDataPluginParams> = {
19
- name: 'PRESET_LINES_LOOSE_TICKS',
20
- description: '寬鬆標籤',
21
- chartParams: {
22
- padding: {
23
- top: 60,
24
- right: 60,
25
- bottom: 120,
26
- left: 60
27
- },
28
- highlightTarget: 'series'
29
- },
30
- allPluginParams: {
31
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
32
- Lines: {},
33
- Dots: {},
34
- GroupAxis: {
35
- ticks: 6
36
- },
37
- ValueAxis: {},
38
- GroupAux: {},
39
- GridLegend: {
40
- position: 'bottom',
41
- justify: 'center',
42
- padding: 14,
43
- listRectHeight: 2
44
- }
45
- }
46
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetLinesParams,
3
+ PresetDotsParams,
4
+ PresetGroupAxisParams,
5
+ PresetValueAxisParams,
6
+ PresetGroupAuxParams,
7
+ PresetGridLegendParams,
8
+ PresetNoneDataPluginParams
9
+ } from '../types'
10
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
11
+
12
+ export const PRESET_LINES_LOOSE_TICKS: PresetPartial<'grid', PresetLinesParams
13
+ & PresetDotsParams
14
+ & PresetGridLegendParams
15
+ & PresetGroupAxisParams
16
+ & PresetValueAxisParams
17
+ & PresetGroupAuxParams
18
+ & PresetNoneDataPluginParams> = {
19
+ name: 'PRESET_LINES_LOOSE_TICKS',
20
+ description: '寬鬆標籤',
21
+ chartParams: {
22
+ padding: {
23
+ top: 60,
24
+ right: 60,
25
+ bottom: 120,
26
+ left: 60
27
+ },
28
+ highlightTarget: 'series'
29
+ },
30
+ allPluginParams: {
31
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
32
+ Lines: {},
33
+ Dots: {},
34
+ GroupAxis: {
35
+ ticks: 6
36
+ },
37
+ ValueAxis: {},
38
+ GroupAux: {},
39
+ GridLegend: {
40
+ position: 'bottom',
41
+ justify: 'center',
42
+ padding: 14,
43
+ listRectHeight: 2
44
+ }
45
+ }
46
+ }