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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/LICENSE +200 -200
  2. package/package.json +44 -44
  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 +8 -8
  52. package/tsconfig.prod.json +2 -2
  53. package/vite.config.mjs +41 -41
@@ -1,59 +1,59 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type {
3
- PresetMultiGridSepratedPluginParams,
4
- PresetNoneDataPluginParams
5
- } from '../types'
6
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
7
-
8
- export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', PresetMultiGridSepratedPluginParams
9
- & PresetNoneDataPluginParams> = {
10
- name: 'PRESET_MULTI_GRID_SEPARATE_GRID',
11
- description: '2組Grid圖表',
12
- chartParams: {
13
- padding: {
14
- top: 60,
15
- right: 60,
16
- bottom: 160,
17
- left: 60
18
- },
19
- },
20
- dataFormatter: {
21
- separateGrid: true,
22
- },
23
- allPluginParams: {
24
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
25
- MultiGroupAxis: {
26
- tickTextRotate: -30,
27
- gridIndexes: 'all'
28
- },
29
- MultiValueAxis: {
30
- gridIndexes: 'all'
31
- },
32
- MultiValueStackAxis: {
33
- gridIndexes: 'all'
34
- },
35
- MultiBars: {
36
- gridIndexes: 'all'
37
- },
38
- MultiBarStack: {
39
- gridIndexes: 'all'
40
- },
41
- MultiBarsTriangle: {
42
- gridIndexes: 'all'
43
- },
44
- MultiLines: {
45
- gridIndexes: 'all'
46
- },
47
- MultiLineAreas: {
48
- gridIndexes: 'all'
49
- },
50
- MultiDots: {
51
- gridIndexes: 'all'
52
- },
53
- MultiGridLegend: {
54
- position: 'bottom',
55
- justify: 'center',
56
- padding: 14,
57
- }
58
- }
59
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type {
3
+ PresetMultiGridSepratedPluginParams,
4
+ PresetNoneDataPluginParams
5
+ } from '../types'
6
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
7
+
8
+ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', PresetMultiGridSepratedPluginParams
9
+ & PresetNoneDataPluginParams> = {
10
+ name: 'PRESET_MULTI_GRID_SEPARATE_GRID',
11
+ description: '2組Grid圖表',
12
+ chartParams: {
13
+ padding: {
14
+ top: 60,
15
+ right: 60,
16
+ bottom: 160,
17
+ left: 60
18
+ },
19
+ },
20
+ dataFormatter: {
21
+ separateGrid: true,
22
+ },
23
+ allPluginParams: {
24
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
25
+ MultiGroupAxis: {
26
+ tickTextRotate: -30,
27
+ gridIndexes: 'all'
28
+ },
29
+ MultiValueAxis: {
30
+ gridIndexes: 'all'
31
+ },
32
+ MultiValueStackAxis: {
33
+ gridIndexes: 'all'
34
+ },
35
+ MultiBars: {
36
+ gridIndexes: 'all'
37
+ },
38
+ MultiBarStack: {
39
+ gridIndexes: 'all'
40
+ },
41
+ MultiBarsTriangle: {
42
+ gridIndexes: 'all'
43
+ },
44
+ MultiLines: {
45
+ gridIndexes: 'all'
46
+ },
47
+ MultiLineAreas: {
48
+ gridIndexes: 'all'
49
+ },
50
+ MultiDots: {
51
+ gridIndexes: 'all'
52
+ },
53
+ MultiGridLegend: {
54
+ position: 'bottom',
55
+ justify: 'center',
56
+ padding: 14,
57
+ }
58
+ }
59
+ }
@@ -1,103 +1,103 @@
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_SEPARATE_GRID: 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_SEPARATE_GRID',
29
- description: '多組分開折線圖表',
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: 'all'
46
- },
47
- MultiValueAxis: {
48
- gridIndexes: 'all'
49
- },
50
- MultiValueStackAxis: {
51
- gridIndexes: 'all'
52
- },
53
- MultiBars: {
54
- gridIndexes: 'all'
55
- },
56
- MultiBarStack: {
57
- gridIndexes: 'all'
58
- },
59
- MultiBarsTriangle: {
60
- gridIndexes: 'all'
61
- },
62
- MultiLines: {
63
- gridIndexes: 'all'
64
- },
65
- MultiLineAreas: {
66
- gridIndexes: 'all'
67
- },
68
- MultiDots: {
69
- gridIndexes: 'all'
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
- listRectHeight: 2,
90
- },
91
- {
92
- listRectHeight: 2,
93
- },
94
- {
95
- listRectHeight: 2,
96
- },
97
- {
98
- listRectHeight: 2,
99
- }
100
- ]
101
- }
102
- }
103
- }
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_SEPARATE_GRID: 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_SEPARATE_GRID',
29
+ description: '多組分開折線圖表',
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: 'all'
46
+ },
47
+ MultiValueAxis: {
48
+ gridIndexes: 'all'
49
+ },
50
+ MultiValueStackAxis: {
51
+ gridIndexes: 'all'
52
+ },
53
+ MultiBars: {
54
+ gridIndexes: 'all'
55
+ },
56
+ MultiBarStack: {
57
+ gridIndexes: 'all'
58
+ },
59
+ MultiBarsTriangle: {
60
+ gridIndexes: 'all'
61
+ },
62
+ MultiLines: {
63
+ gridIndexes: 'all'
64
+ },
65
+ MultiLineAreas: {
66
+ gridIndexes: 'all'
67
+ },
68
+ MultiDots: {
69
+ gridIndexes: 'all'
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
+ listRectHeight: 2,
90
+ },
91
+ {
92
+ listRectHeight: 2,
93
+ },
94
+ {
95
+ listRectHeight: 2,
96
+ },
97
+ {
98
+ listRectHeight: 2,
99
+ }
100
+ ]
101
+ }
102
+ }
103
+ }
@@ -1,121 +1,121 @@
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_SEPARATE_GRID: 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_SEPARATE_GRID',
29
- description: '2組區域圖表',
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
- separateGrid: true,
54
- // container: {
55
- // rowAmount: 1,
56
- // columnAmount: 2,
57
- // }
58
- },
59
- allPluginParams: {
60
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
61
- MultiGroupAxis: {
62
- tickTextRotate: -30,
63
- gridIndexes: 'all'
64
- },
65
- MultiValueAxis: {
66
- gridIndexes: 'all'
67
- },
68
- MultiValueStackAxis: {
69
- gridIndexes: 'all'
70
- },
71
- MultiBars: {
72
- gridIndexes: 'all'
73
- },
74
- MultiBarStack: {
75
- gridIndexes: 'all'
76
- },
77
- MultiBarsTriangle: {
78
- gridIndexes: 'all'
79
- },
80
- MultiLines: {
81
- gridIndexes: 'all'
82
- },
83
- MultiLineAreas: {
84
- gridIndexes: 'all'
85
- },
86
- MultiDots: {
87
- gridIndexes: 'all'
88
- },
89
- MultiGridLegend: {
90
- position: 'bottom',
91
- justify: 'center',
92
- padding: 14,
93
- gridList: [
94
- {
95
- listRectHeight: 2,
96
- },
97
- {
98
- listRectHeight: 2,
99
- },
100
- {
101
- listRectHeight: 2,
102
- },
103
- {
104
- listRectHeight: 2,
105
- },
106
- {
107
- listRectHeight: 2,
108
- },
109
- {
110
- listRectHeight: 2,
111
- },
112
- {
113
- listRectHeight: 2,
114
- },
115
- {
116
- listRectHeight: 2,
117
- }
118
- ]
119
- }
120
- }
121
- }
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_SEPARATE_GRID: 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_SEPARATE_GRID',
29
+ description: '2組區域圖表',
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
+ separateGrid: true,
54
+ // container: {
55
+ // rowAmount: 1,
56
+ // columnAmount: 2,
57
+ // }
58
+ },
59
+ allPluginParams: {
60
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
61
+ MultiGroupAxis: {
62
+ tickTextRotate: -30,
63
+ gridIndexes: 'all'
64
+ },
65
+ MultiValueAxis: {
66
+ gridIndexes: 'all'
67
+ },
68
+ MultiValueStackAxis: {
69
+ gridIndexes: 'all'
70
+ },
71
+ MultiBars: {
72
+ gridIndexes: 'all'
73
+ },
74
+ MultiBarStack: {
75
+ gridIndexes: 'all'
76
+ },
77
+ MultiBarsTriangle: {
78
+ gridIndexes: 'all'
79
+ },
80
+ MultiLines: {
81
+ gridIndexes: 'all'
82
+ },
83
+ MultiLineAreas: {
84
+ gridIndexes: 'all'
85
+ },
86
+ MultiDots: {
87
+ gridIndexes: 'all'
88
+ },
89
+ MultiGridLegend: {
90
+ position: 'bottom',
91
+ justify: 'center',
92
+ padding: 14,
93
+ gridList: [
94
+ {
95
+ listRectHeight: 2,
96
+ },
97
+ {
98
+ listRectHeight: 2,
99
+ },
100
+ {
101
+ listRectHeight: 2,
102
+ },
103
+ {
104
+ listRectHeight: 2,
105
+ },
106
+ {
107
+ listRectHeight: 2,
108
+ },
109
+ {
110
+ listRectHeight: 2,
111
+ },
112
+ {
113
+ listRectHeight: 2,
114
+ },
115
+ {
116
+ listRectHeight: 2,
117
+ }
118
+ ]
119
+ }
120
+ }
121
+ }
@@ -1,6 +1,6 @@
1
- export { PRESET_MULTI_GRID_BASIC } from './PRESET_MULTI_GRID_BASIC'
2
- export { PRESET_MULTI_GRID_DIVERGING } from './PRESET_MULTI_GRID_DIVERGING'
3
- export { PRESET_MULTI_GRID_ROUND_STYLE } from './PRESET_MULTI_GRID_ROUND_STYLE'
4
- export { PRESET_MULTI_GRID_SEPARATE_GRID } from './PRESET_MULTI_GRID_SEPARATE_GRID'
5
- export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID'
6
- export { PRESET_MULTI_LINES_SEPARATE_GRID } from './PRESET_MULTI_LINES_SEPARATE_GRID'
1
+ export { PRESET_MULTI_GRID_BASIC } from './PRESET_MULTI_GRID_BASIC'
2
+ export { PRESET_MULTI_GRID_DIVERGING } from './PRESET_MULTI_GRID_DIVERGING'
3
+ export { PRESET_MULTI_GRID_ROUND_STYLE } from './PRESET_MULTI_GRID_ROUND_STYLE'
4
+ export { PRESET_MULTI_GRID_SEPARATE_GRID } from './PRESET_MULTI_GRID_SEPARATE_GRID'
5
+ export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID'
6
+ export { PRESET_MULTI_LINES_SEPARATE_GRID } from './PRESET_MULTI_LINES_SEPARATE_GRID'