@orbcharts/presets-basic 3.0.0-alpha.23 → 3.0.0-alpha.24

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 (31) hide show
  1. package/dist/orbcharts-presets-basic.es.js +224 -616
  2. package/dist/orbcharts-presets-basic.umd.js +1 -1
  3. package/dist/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.d.ts +4 -0
  4. package/dist/src/grid/index.d.ts +1 -1
  5. package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.d.ts +4 -0
  6. package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.d.ts +4 -0
  7. package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +4 -0
  8. package/dist/src/multiGrid/index.d.ts +4 -10
  9. package/package.json +3 -3
  10. package/src/grid/{PRESET_LINE_AREAS_SEPARATE_GRID.ts → PRESET_LINE_AREAS_SEPARATE_SERIES.ts} +2 -2
  11. package/src/grid/index.ts +1 -1
  12. package/src/multiGrid/{PRESET_MULTI_GRID_2_GRID_SLOT.ts → PRESET_MULTI_GRID_SEPARATE_GRID.ts} +11 -11
  13. package/src/multiGrid/{PRESET_MULTI_LINES_2_GRID_SLOT.ts → PRESET_MULTI_LINES_SEPARATE_GRID.ts} +24 -12
  14. package/src/multiGrid/{PRESET_MULTI_LINE_AREAS_2_GRID_SLOT.ts → PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts} +23 -11
  15. package/src/multiGrid/index.ts +4 -10
  16. package/dist/src/grid/PRESET_LINE_AREAS_SEPARATE_GRID.d.ts +0 -4
  17. package/dist/src/multiGrid/PRESET_MULTI_GRID_2_GRID_SLOT.d.ts +0 -4
  18. package/dist/src/multiGrid/PRESET_MULTI_GRID_3_GRID_SLOT.d.ts +0 -4
  19. package/dist/src/multiGrid/PRESET_MULTI_GRID_4_GRID_SLOT.d.ts +0 -4
  20. package/dist/src/multiGrid/PRESET_MULTI_LINES_2_GRID_SLOT.d.ts +0 -4
  21. package/dist/src/multiGrid/PRESET_MULTI_LINES_3_GRID_SLOT.d.ts +0 -4
  22. package/dist/src/multiGrid/PRESET_MULTI_LINES_4_GRID_SLOT.d.ts +0 -4
  23. package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_2_GRID_SLOT.d.ts +0 -4
  24. package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_3_GRID_SLOT.d.ts +0 -4
  25. package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_4_GRID_SLOT.d.ts +0 -4
  26. package/src/multiGrid/PRESET_MULTI_GRID_3_GRID_SLOT.ts +0 -59
  27. package/src/multiGrid/PRESET_MULTI_GRID_4_GRID_SLOT.ts +0 -59
  28. package/src/multiGrid/PRESET_MULTI_LINES_3_GRID_SLOT.ts +0 -91
  29. package/src/multiGrid/PRESET_MULTI_LINES_4_GRID_SLOT.ts +0 -91
  30. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_3_GRID_SLOT.ts +0 -115
  31. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_4_GRID_SLOT.ts +0 -121
@@ -1,91 +0,0 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type {
3
- PresetMultiGroupAxisParams,
4
- PresetMultiValueAxisParams,
5
- PresetMultiValueStackAxisParams,
6
- PresetMultiBarsParams,
7
- PresetMultiBarStackParams,
8
- PresetMultiBarsTriangleParams,
9
- PresetMultiLinesParams,
10
- PresetMultiLineAreasParams,
11
- PresetMultiDotsParams,
12
- PresetMultiGridLegendParams,
13
- PresetNoneDataPluginParams
14
- } from '../types'
15
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
16
-
17
- export const PRESET_MULTI_LINES_3_GRID_SLOT: PresetPartial<'multiGrid', PresetMultiGroupAxisParams
18
- & PresetMultiValueAxisParams
19
- & PresetMultiValueStackAxisParams
20
- & PresetMultiBarsParams
21
- & PresetMultiBarStackParams
22
- & PresetMultiBarsTriangleParams
23
- & PresetMultiLinesParams
24
- & PresetMultiLineAreasParams
25
- & PresetMultiDotsParams
26
- & PresetMultiGridLegendParams
27
- & PresetNoneDataPluginParams> = {
28
- name: 'PRESET_MULTI_LINES_3_GRID_SLOT',
29
- description: '3組折線圖表',
30
- chartParams: {
31
- padding: {
32
- top: 60,
33
- right: 60,
34
- bottom: 160,
35
- left: 60
36
- },
37
- },
38
- dataFormatter: {
39
- separateGrid: true,
40
- },
41
- allPluginParams: {
42
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
43
- MultiGroupAxis: {
44
- tickTextRotate: -30,
45
- gridIndexes: [0, 1, 2]
46
- },
47
- MultiValueAxis: {
48
- gridIndexes: [0, 1, 2]
49
- },
50
- MultiValueStackAxis: {
51
- gridIndexes: [0, 1, 2]
52
- },
53
- MultiBars: {
54
- gridIndexes: [0, 1, 2]
55
- },
56
- MultiBarStack: {
57
- gridIndexes: [0, 1, 2]
58
- },
59
- MultiBarsTriangle: {
60
- gridIndexes: [0, 1, 2]
61
- },
62
- MultiLines: {
63
- gridIndexes: [0, 1, 2]
64
- },
65
- MultiLineAreas: {
66
- gridIndexes: [0, 1, 2]
67
- },
68
- MultiDots: {
69
- gridIndexes: [0, 1, 2]
70
- },
71
- MultiGridLegend: {
72
- position: 'bottom',
73
- justify: 'center',
74
- padding: 14,
75
- gridList: [
76
- {
77
- listRectHeight: 2,
78
- },
79
- {
80
- listRectHeight: 2,
81
- },
82
- {
83
- listRectHeight: 2,
84
- },
85
- {
86
- listRectHeight: 2,
87
- }
88
- ]
89
- }
90
- }
91
- }
@@ -1,91 +0,0 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type {
3
- PresetMultiGroupAxisParams,
4
- PresetMultiValueAxisParams,
5
- PresetMultiValueStackAxisParams,
6
- PresetMultiBarsParams,
7
- PresetMultiBarStackParams,
8
- PresetMultiBarsTriangleParams,
9
- PresetMultiLinesParams,
10
- PresetMultiLineAreasParams,
11
- PresetMultiDotsParams,
12
- PresetMultiGridLegendParams,
13
- PresetNoneDataPluginParams
14
- } from '../types'
15
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
16
-
17
- export const PRESET_MULTI_LINES_4_GRID_SLOT: PresetPartial<'multiGrid', PresetMultiGroupAxisParams
18
- & PresetMultiValueAxisParams
19
- & PresetMultiValueStackAxisParams
20
- & PresetMultiBarsParams
21
- & PresetMultiBarStackParams
22
- & PresetMultiBarsTriangleParams
23
- & PresetMultiLinesParams
24
- & PresetMultiLineAreasParams
25
- & PresetMultiDotsParams
26
- & PresetMultiGridLegendParams
27
- & PresetNoneDataPluginParams> = {
28
- name: 'PRESET_MULTI_LINES_4_GRID_SLOT',
29
- description: '4組折線圖表',
30
- chartParams: {
31
- padding: {
32
- top: 60,
33
- right: 60,
34
- bottom: 160,
35
- left: 60
36
- },
37
- },
38
- dataFormatter: {
39
- separateGrid: true,
40
- },
41
- allPluginParams: {
42
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
43
- MultiGroupAxis: {
44
- tickTextRotate: -30,
45
- gridIndexes: [0, 1, 2, 3]
46
- },
47
- MultiValueAxis: {
48
- gridIndexes: [0, 1, 2, 3]
49
- },
50
- MultiValueStackAxis: {
51
- gridIndexes: [0, 1, 2, 3]
52
- },
53
- MultiBars: {
54
- gridIndexes: [0, 1, 2, 3]
55
- },
56
- MultiBarStack: {
57
- gridIndexes: [0, 1, 2, 3]
58
- },
59
- MultiBarsTriangle: {
60
- gridIndexes: [0, 1, 2, 3]
61
- },
62
- MultiLines: {
63
- gridIndexes: [0, 1, 2, 3]
64
- },
65
- MultiLineAreas: {
66
- gridIndexes: [0, 1, 2, 3]
67
- },
68
- MultiDots: {
69
- gridIndexes: [0, 1, 2, 3]
70
- },
71
- MultiGridLegend: {
72
- position: 'bottom',
73
- justify: 'center',
74
- padding: 14,
75
- gridList: [
76
- {
77
- listRectHeight: 2,
78
- },
79
- {
80
- listRectHeight: 2,
81
- },
82
- {
83
- listRectHeight: 2,
84
- },
85
- {
86
- listRectHeight: 2,
87
- }
88
- ]
89
- }
90
- }
91
- }
@@ -1,115 +0,0 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type {
3
- PresetMultiGroupAxisParams,
4
- PresetMultiValueAxisParams,
5
- PresetMultiValueStackAxisParams,
6
- PresetMultiBarsParams,
7
- PresetMultiBarStackParams,
8
- PresetMultiBarsTriangleParams,
9
- PresetMultiLinesParams,
10
- PresetMultiLineAreasParams,
11
- PresetMultiDotsParams,
12
- PresetMultiGridLegendParams,
13
- PresetNoneDataPluginParams
14
- } from '../types'
15
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
16
-
17
- export const PRESET_MULTI_LINE_AREAS_3_GRID_SLOT: PresetPartial<'multiGrid', PresetMultiGroupAxisParams
18
- & PresetMultiValueAxisParams
19
- & PresetMultiValueStackAxisParams
20
- & PresetMultiBarsParams
21
- & PresetMultiBarStackParams
22
- & PresetMultiBarsTriangleParams
23
- & PresetMultiLinesParams
24
- & PresetMultiLineAreasParams
25
- & PresetMultiDotsParams
26
- & PresetMultiGridLegendParams
27
- & PresetNoneDataPluginParams> = {
28
- name: 'PRESET_MULTI_LINE_AREAS_3_GRID_SLOT',
29
- description: '3組區域圖表',
30
- chartParams: {
31
- padding: {
32
- top: 60,
33
- right: 60,
34
- bottom: 160,
35
- left: 60
36
- },
37
- },
38
- dataFormatter: {
39
- gridList: [
40
- {
41
- // slotIndex: 0
42
- groupAxis: {
43
- scalePadding: 0
44
- }
45
- },
46
- {
47
- // slotIndex: 1,
48
- groupAxis: {
49
- scalePadding: 0
50
- }
51
- },
52
- {
53
- // slotIndex: 2,
54
- groupAxis: {
55
- scalePadding: 0
56
- }
57
- }
58
- ],
59
- separateGrid: true,
60
- // container: {
61
- // rowAmount: 1,
62
- // columnAmount: 3,
63
- // }
64
- },
65
- allPluginParams: {
66
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
67
- MultiGroupAxis: {
68
- tickTextRotate: -30,
69
- gridIndexes: [0, 1, 2]
70
- },
71
- MultiValueAxis: {
72
- gridIndexes: [0, 1, 2]
73
- },
74
- MultiValueStackAxis: {
75
- gridIndexes: [0, 1, 2]
76
- },
77
- MultiBars: {
78
- gridIndexes: [0, 1, 2]
79
- },
80
- MultiBarStack: {
81
- gridIndexes: [0, 1, 2]
82
- },
83
- MultiBarsTriangle: {
84
- gridIndexes: [0, 1, 2]
85
- },
86
- MultiLines: {
87
- gridIndexes: [0, 1, 2]
88
- },
89
- MultiLineAreas: {
90
- gridIndexes: [0, 1, 2]
91
- },
92
- MultiDots: {
93
- gridIndexes: [0, 1, 2]
94
- },
95
- MultiGridLegend: {
96
- position: 'bottom',
97
- justify: 'center',
98
- padding: 14,
99
- gridList: [
100
- {
101
- listRectHeight: 2,
102
- },
103
- {
104
- listRectHeight: 2,
105
- },
106
- {
107
- listRectHeight: 2,
108
- },
109
- {
110
- listRectHeight: 2,
111
- }
112
- ]
113
- }
114
- }
115
- }
@@ -1,121 +0,0 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type {
3
- PresetMultiGroupAxisParams,
4
- PresetMultiValueAxisParams,
5
- PresetMultiValueStackAxisParams,
6
- PresetMultiBarsParams,
7
- PresetMultiBarStackParams,
8
- PresetMultiBarsTriangleParams,
9
- PresetMultiLinesParams,
10
- PresetMultiLineAreasParams,
11
- PresetMultiDotsParams,
12
- PresetMultiGridLegendParams,
13
- PresetNoneDataPluginParams
14
- } from '../types'
15
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
16
-
17
- export const PRESET_MULTI_LINE_AREAS_4_GRID_SLOT: PresetPartial<'multiGrid', PresetMultiGroupAxisParams
18
- & PresetMultiValueAxisParams
19
- & PresetMultiValueStackAxisParams
20
- & PresetMultiBarsParams
21
- & PresetMultiBarStackParams
22
- & PresetMultiBarsTriangleParams
23
- & PresetMultiLinesParams
24
- & PresetMultiLineAreasParams
25
- & PresetMultiDotsParams
26
- & PresetMultiGridLegendParams
27
- & PresetNoneDataPluginParams> = {
28
- name: 'PRESET_MULTI_LINE_AREAS_4_GRID_SLOT',
29
- description: '4組區域圖表',
30
- chartParams: {
31
- padding: {
32
- top: 60,
33
- right: 60,
34
- bottom: 160,
35
- left: 60
36
- },
37
- },
38
- dataFormatter: {
39
- gridList: [
40
- {
41
- // slotIndex: 0
42
- groupAxis: {
43
- scalePadding: 0
44
- }
45
- },
46
- {
47
- // slotIndex: 1,
48
- groupAxis: {
49
- scalePadding: 0
50
- }
51
- },
52
- {
53
- // slotIndex: 2,
54
- groupAxis: {
55
- scalePadding: 0
56
- }
57
- },
58
- {
59
- // slotIndex: 2,
60
- groupAxis: {
61
- scalePadding: 0
62
- }
63
- }
64
- ],
65
- separateGrid: true,
66
- // container: {
67
- // rowAmount: 2,
68
- // columnAmount: 2,
69
- // }
70
- },
71
- allPluginParams: {
72
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
73
- MultiGroupAxis: {
74
- tickTextRotate: -30,
75
- gridIndexes: [0, 1, 2, 3]
76
- },
77
- MultiValueAxis: {
78
- gridIndexes: [0, 1, 2, 3]
79
- },
80
- MultiValueStackAxis: {
81
- gridIndexes: [0, 1, 2, 3]
82
- },
83
- MultiBars: {
84
- gridIndexes: [0, 1, 2, 3]
85
- },
86
- MultiBarStack: {
87
- gridIndexes: [0, 1, 2, 3]
88
- },
89
- MultiBarsTriangle: {
90
- gridIndexes: [0, 1, 2, 3]
91
- },
92
- MultiLines: {
93
- gridIndexes: [0, 1, 2, 3]
94
- },
95
- MultiLineAreas: {
96
- gridIndexes: [0, 1, 2, 3]
97
- },
98
- MultiDots: {
99
- gridIndexes: [0, 1, 2, 3]
100
- },
101
- MultiGridLegend: {
102
- position: 'bottom',
103
- justify: 'center',
104
- padding: 14,
105
- gridList: [
106
- {
107
- listRectHeight: 2,
108
- },
109
- {
110
- listRectHeight: 2,
111
- },
112
- {
113
- listRectHeight: 2,
114
- },
115
- {
116
- listRectHeight: 2,
117
- }
118
- ]
119
- }
120
- }
121
- }