@orbcharts/presets-basic 3.0.0-beta.13 → 3.0.0-beta.15

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 (111) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +1870 -542
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/lib/core-types.ts +7 -7
  5. package/lib/plugins-basic-types.ts +6 -6
  6. package/package.json +42 -42
  7. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +74 -60
  8. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +75 -61
  9. package/src/grid/PRESET_BARS_ROUND.ts +70 -56
  10. package/src/grid/PRESET_BARS_THIN.ts +67 -53
  11. package/src/grid/PRESET_GRID_BASIC.ts +58 -44
  12. package/src/grid/PRESET_GRID_HORIZONTAL.ts +75 -61
  13. package/src/grid/PRESET_GRID_PN_SCALE.ts +66 -52
  14. package/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.ts +63 -49
  15. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +66 -52
  16. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +71 -57
  17. package/src/grid/PRESET_GRID_SIMPLE.ts +58 -44
  18. package/src/grid/PRESET_LINES_BASIC.ts +62 -48
  19. package/src/grid/PRESET_LINES_CURVE.ts +65 -51
  20. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +64 -50
  21. package/src/grid/PRESET_LINES_HORIZONTAL.ts +70 -56
  22. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +64 -50
  23. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +67 -53
  24. package/src/grid/PRESET_LINES_SIMPLE.ts +67 -53
  25. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +66 -52
  26. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +68 -54
  27. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +79 -65
  28. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +72 -58
  29. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +72 -58
  30. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +70 -56
  31. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +73 -59
  32. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +74 -60
  33. package/src/grid/PRESET_LINE_AREAS_SIMPLE.ts +71 -57
  34. package/src/grid/index.ts +26 -26
  35. package/src/index.ts +6 -6
  36. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +64 -50
  37. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +112 -98
  38. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.ts +115 -101
  39. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +85 -71
  40. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.ts +95 -81
  41. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +87 -73
  42. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.ts +98 -84
  43. package/src/multiGrid/PRESET_MULTI_GRID_SIMPLE.ts +74 -60
  44. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +115 -101
  45. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.ts +124 -110
  46. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +133 -119
  47. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.ts +127 -113
  48. package/src/multiGrid/index.ts +12 -12
  49. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +53 -39
  50. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +64 -50
  51. package/src/multiValue/PRESET_MULTI_VALUE_SIMPLE.ts +53 -39
  52. package/src/multiValue/PRESET_RACING_BARS_ALL_ITEMS.ts +58 -44
  53. package/src/multiValue/PRESET_RACING_BARS_BASIC.ts +57 -43
  54. package/src/multiValue/PRESET_RACING_BARS_FAST.ts +57 -43
  55. package/src/multiValue/PRESET_RACING_BARS_FASTER.ts +57 -43
  56. package/src/multiValue/PRESET_RACING_BARS_LOOP.ts +58 -44
  57. package/src/multiValue/PRESET_RACING_BARS_OUTSIDE_LABELS.ts +61 -47
  58. package/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.ts +74 -60
  59. package/src/multiValue/PRESET_RACING_BARS_SIMPLE.ts +57 -43
  60. package/src/multiValue/PRESET_RACING_BARS_STOP.ts +56 -42
  61. package/src/multiValue/PRESET_SCATTER_BASIC.ts +54 -40
  62. package/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.ts +54 -40
  63. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +57 -43
  64. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +57 -43
  65. package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +57 -43
  66. package/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.ts +54 -40
  67. package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +65 -51
  68. package/src/multiValue/PRESET_SCATTER_SIMPLE.ts +54 -40
  69. package/src/multiValue/index.ts +20 -20
  70. package/src/params.ts +83 -83
  71. package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +47 -33
  72. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +47 -33
  73. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +52 -38
  74. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +52 -38
  75. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +49 -35
  76. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE.ts +48 -34
  77. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +54 -40
  78. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +52 -38
  79. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +49 -35
  80. package/src/relationship/PRESET_FORCE_DIRECTED_SIMPLE.ts +48 -34
  81. package/src/relationship/index.ts +9 -9
  82. package/src/series/PRESET_BUBBLES_BASIC.ts +46 -32
  83. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +49 -35
  84. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +58 -44
  85. package/src/series/PRESET_BUBBLES_SIMPLE.ts +53 -39
  86. package/src/series/PRESET_BUBBLES_SUM_SERIES.ts +48 -34
  87. package/src/series/PRESET_PIE_BASIC.ts +49 -35
  88. package/src/series/PRESET_PIE_DONUT.ts +54 -40
  89. package/src/series/PRESET_PIE_HALF_DONUT.ts +66 -52
  90. package/src/series/PRESET_PIE_SEPARATE_SERIES.ts +47 -33
  91. package/src/series/PRESET_PIE_SIMPLE.ts +56 -42
  92. package/src/series/PRESET_PIE_SUM_SERIES.ts +48 -34
  93. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +55 -41
  94. package/src/series/PRESET_ROSE_BASIC.ts +55 -41
  95. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +61 -47
  96. package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +55 -41
  97. package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +56 -42
  98. package/src/series/PRESET_ROSE_SIMPLE.ts +56 -42
  99. package/src/series/PRESET_ROSE_SUM_SERIES.ts +54 -40
  100. package/src/series/PRESET_SERIES_BASIC.ts +46 -32
  101. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +47 -15
  102. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +48 -16
  103. package/src/series/PRESET_SERIES_SUM_SERIES.ts +49 -17
  104. package/src/series/index.ts +23 -23
  105. package/src/tree/PRESET_TREE_MAP_BASIC.ts +58 -44
  106. package/src/tree/PRESET_TREE_MAP_SIMPLE.ts +54 -40
  107. package/src/tree/index.ts +1 -1
  108. package/src/types.ts +368 -368
  109. package/tsconfig.base.json +13 -13
  110. package/tsconfig.json +2 -2
  111. package/vite.config.js +22 -22
@@ -1,119 +1,133 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type {
3
- PresetMultiGridPluginParams,
4
- PresetNoneDataPluginParams
5
- } from '../types'
6
-
7
- export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
10
- description: 'Separate Grid line areas',
11
- descriptionZh: '分開顯示Grid的折線區域圖',
12
- chartParams: {
13
- colors: {
14
- light: {
15
- label: [
16
- "#4BABFF",
17
- "#94D6CB",
18
- "#F9B052",
19
- "#8454D4",
20
- "#D58C75",
21
- "#42C724",
22
- "#FF8B8B",
23
- "#904026",
24
- "#C50669",
25
- "#4B25B3"
26
- ],
27
- }
28
- },
29
- padding: {
30
- top: 40,
31
- right: 40,
32
- bottom: 140,
33
- left: 80
34
- },
35
- },
36
- dataFormatter: {
37
- gridList: [
38
- {
39
- // slotIndex: 0
40
- groupAxis: {
41
- scalePadding: 0
42
- }
43
- },
44
- {
45
- // slotIndex: 1,
46
- groupAxis: {
47
- scalePadding: 0
48
- }
49
- }
50
- ],
51
- separateGrid: true,
52
- // container: {
53
- // rowAmount: 1,
54
- // columnAmount: 2,
55
- // }
56
- },
57
- pluginParams: {
58
- MultiGroupAxis: {
59
- tickTextRotate: -30,
60
- gridIndexes: 'all'
61
- },
62
- MultiValueAxis: {
63
- gridIndexes: 'all'
64
- },
65
- MultiStackedValueAxis: {
66
- gridIndexes: 'all'
67
- },
68
- MultiBars: {
69
- gridIndexes: 'all'
70
- },
71
- MultiStackedBars: {
72
- gridIndexes: 'all'
73
- },
74
- MultiBarsTriangle: {
75
- gridIndexes: 'all'
76
- },
77
- MultiLines: {
78
- gridIndexes: 'all'
79
- },
80
- MultiLineAreas: {
81
- gridIndexes: 'all'
82
- },
83
- MultiDots: {
84
- gridIndexes: 'all'
85
- },
86
- MultiGridLegend: {
87
- // position: 'bottom',
88
- // justify: 'center',
89
- placement: 'bottom',
90
- padding: 14,
91
- gridList: [
92
- {
93
- listRectHeight: 2,
94
- },
95
- {
96
- listRectHeight: 2,
97
- },
98
- {
99
- listRectHeight: 2,
100
- },
101
- {
102
- listRectHeight: 2,
103
- },
104
- {
105
- listRectHeight: 2,
106
- },
107
- {
108
- listRectHeight: 2,
109
- },
110
- {
111
- listRectHeight: 2,
112
- },
113
- {
114
- listRectHeight: 2,
115
- }
116
- ]
117
- }
118
- }
119
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type {
3
+ PresetMultiGridPluginParams,
4
+ PresetNoneDataPluginParams
5
+ } from '../types'
6
+
7
+ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
10
+ description: 'Separate Grid line areas',
11
+ descriptionZh: '分開顯示Grid的折線區域圖',
12
+ chartParams: {
13
+ colors: {
14
+ light: {
15
+ label: [
16
+ "#0088FF",
17
+ "#16B59B",
18
+ "#6F3BD5",
19
+ "#EE5F13",
20
+ "#F9B052",
21
+ "#D4785A",
22
+ "#42C724",
23
+ "#FF4B4B",
24
+ "#1F3172",
25
+ "#E23D93"
26
+ ],
27
+ },
28
+ dark: {
29
+ label: [
30
+ "#4BABFF",
31
+ "#7DD3C4",
32
+ "#8454D4",
33
+ "#FF6C6C",
34
+ "#FAC77D",
35
+ "#D58C75",
36
+ "#42C724",
37
+ "#FF8B8B",
38
+ "#5366AC",
39
+ "#FF8DC8"
40
+ ]
41
+ }
42
+ },
43
+ padding: {
44
+ top: 40,
45
+ right: 40,
46
+ bottom: 140,
47
+ left: 80
48
+ },
49
+ },
50
+ dataFormatter: {
51
+ gridList: [
52
+ {
53
+ // slotIndex: 0
54
+ groupAxis: {
55
+ scalePadding: 0
56
+ }
57
+ },
58
+ {
59
+ // slotIndex: 1,
60
+ groupAxis: {
61
+ scalePadding: 0
62
+ }
63
+ }
64
+ ],
65
+ separateGrid: true,
66
+ // container: {
67
+ // rowAmount: 1,
68
+ // columnAmount: 2,
69
+ // }
70
+ },
71
+ pluginParams: {
72
+ MultiGroupAxis: {
73
+ tickTextRotate: -30,
74
+ gridIndexes: 'all'
75
+ },
76
+ MultiValueAxis: {
77
+ gridIndexes: 'all'
78
+ },
79
+ MultiStackedValueAxis: {
80
+ gridIndexes: 'all'
81
+ },
82
+ MultiBars: {
83
+ gridIndexes: 'all'
84
+ },
85
+ MultiStackedBars: {
86
+ gridIndexes: 'all'
87
+ },
88
+ MultiBarsTriangle: {
89
+ gridIndexes: 'all'
90
+ },
91
+ MultiLines: {
92
+ gridIndexes: 'all'
93
+ },
94
+ MultiLineAreas: {
95
+ gridIndexes: 'all'
96
+ },
97
+ MultiDots: {
98
+ gridIndexes: 'all'
99
+ },
100
+ MultiGridLegend: {
101
+ // position: 'bottom',
102
+ // justify: 'center',
103
+ placement: 'bottom',
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
+ listRectHeight: 2,
120
+ },
121
+ {
122
+ listRectHeight: 2,
123
+ },
124
+ {
125
+ listRectHeight: 2,
126
+ },
127
+ {
128
+ listRectHeight: 2,
129
+ }
130
+ ]
131
+ }
132
+ }
133
+ }
@@ -1,113 +1,127 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type {
3
- PresetMultiGridPluginParams,
4
- PresetNoneDataPluginParams
5
- } from '../types'
6
-
7
- export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE',
10
- description: 'Simple separate grid line areas',
11
- descriptionZh: '簡單的分開顯示Grid的折線區域圖',
12
- chartParams: {
13
- colors: {
14
- light: {
15
- label: [
16
- "#4BABFF",
17
- "#94D6CB",
18
- "#F9B052",
19
- "#8454D4",
20
- "#D58C75",
21
- "#42C724",
22
- "#FF8B8B",
23
- "#904026",
24
- "#C50669",
25
- "#4B25B3"
26
- ],
27
- }
28
- },
29
- padding: {
30
- top: 40,
31
- right: 80, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
32
- bottom: 80,
33
- left: 80 // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
34
- },
35
- },
36
- dataFormatter: {
37
- gridList: [
38
- // 設定一個所有grid一起套用
39
- {
40
- groupAxis: {
41
- scalePadding: 0
42
- },
43
- valueAxis: {
44
- scaleRange: [0, 0.95]
45
- },
46
- },
47
- ],
48
- separateGrid: true,
49
- container: {
50
- gap: 160
51
- }
52
- },
53
- pluginParams: {
54
- MultiGroupAxis: {
55
- // tickTextRotate: -30,
56
- gridIndexes: 'all'
57
- },
58
- MultiValueAxis: {
59
- gridIndexes: 'all'
60
- },
61
- MultiStackedValueAxis: {
62
- gridIndexes: 'all'
63
- },
64
- MultiBars: {
65
- gridIndexes: 'all'
66
- },
67
- MultiStackedBars: {
68
- gridIndexes: 'all'
69
- },
70
- MultiBarsTriangle: {
71
- gridIndexes: 'all'
72
- },
73
- MultiLines: {
74
- gridIndexes: 'all'
75
- },
76
- MultiLineAreas: {
77
- gridIndexes: 'all'
78
- },
79
- MultiDots: {
80
- gridIndexes: 'all'
81
- },
82
- MultiGridLegend: {
83
- placement: 'bottom',
84
- padding: 7,
85
- gridList: [
86
- {
87
- listRectHeight: 2,
88
- },
89
- {
90
- listRectHeight: 2,
91
- },
92
- {
93
- listRectHeight: 2,
94
- },
95
- {
96
- listRectHeight: 2,
97
- },
98
- {
99
- listRectHeight: 2,
100
- },
101
- {
102
- listRectHeight: 2,
103
- },
104
- {
105
- listRectHeight: 2,
106
- },
107
- {
108
- listRectHeight: 2,
109
- }
110
- ]
111
- }
112
- }
113
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type {
3
+ PresetMultiGridPluginParams,
4
+ PresetNoneDataPluginParams
5
+ } from '../types'
6
+
7
+ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE',
10
+ description: 'Simple separate grid line areas',
11
+ descriptionZh: '簡單的分開顯示Grid的折線區域圖',
12
+ chartParams: {
13
+ colors: {
14
+ light: {
15
+ label: [
16
+ "#0088FF",
17
+ "#16B59B",
18
+ "#6F3BD5",
19
+ "#EE5F13",
20
+ "#F9B052",
21
+ "#D4785A",
22
+ "#42C724",
23
+ "#FF4B4B",
24
+ "#1F3172",
25
+ "#E23D93"
26
+ ],
27
+ },
28
+ dark: {
29
+ label: [
30
+ "#4BABFF",
31
+ "#7DD3C4",
32
+ "#8454D4",
33
+ "#FF6C6C",
34
+ "#FAC77D",
35
+ "#D58C75",
36
+ "#42C724",
37
+ "#FF8B8B",
38
+ "#5366AC",
39
+ "#FF8DC8"
40
+ ]
41
+ }
42
+ },
43
+ padding: {
44
+ top: 40,
45
+ right: 80, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
46
+ bottom: 80,
47
+ left: 80 // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
48
+ },
49
+ },
50
+ dataFormatter: {
51
+ gridList: [
52
+ // 設定一個所有grid一起套用
53
+ {
54
+ groupAxis: {
55
+ scalePadding: 0
56
+ },
57
+ valueAxis: {
58
+ scaleRange: [0, 0.95]
59
+ },
60
+ },
61
+ ],
62
+ separateGrid: true,
63
+ container: {
64
+ gap: 160
65
+ }
66
+ },
67
+ pluginParams: {
68
+ MultiGroupAxis: {
69
+ // tickTextRotate: -30,
70
+ gridIndexes: 'all'
71
+ },
72
+ MultiValueAxis: {
73
+ gridIndexes: 'all'
74
+ },
75
+ MultiStackedValueAxis: {
76
+ gridIndexes: 'all'
77
+ },
78
+ MultiBars: {
79
+ gridIndexes: 'all'
80
+ },
81
+ MultiStackedBars: {
82
+ gridIndexes: 'all'
83
+ },
84
+ MultiBarsTriangle: {
85
+ gridIndexes: 'all'
86
+ },
87
+ MultiLines: {
88
+ gridIndexes: 'all'
89
+ },
90
+ MultiLineAreas: {
91
+ gridIndexes: 'all'
92
+ },
93
+ MultiDots: {
94
+ gridIndexes: 'all'
95
+ },
96
+ MultiGridLegend: {
97
+ placement: 'bottom',
98
+ padding: 7,
99
+ gridList: [
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
+ listRectHeight: 2,
120
+ },
121
+ {
122
+ listRectHeight: 2,
123
+ }
124
+ ]
125
+ }
126
+ }
127
+ }
@@ -1,12 +1,12 @@
1
- export { PRESET_MULTI_GRID_BASIC } from './PRESET_MULTI_GRID_BASIC'
2
- export { PRESET_MULTI_GRID_DIVERGING_SIMPLE } from './PRESET_MULTI_GRID_DIVERGING_SIMPLE'
3
- export { PRESET_MULTI_GRID_DIVERGING } from './PRESET_MULTI_GRID_DIVERGING'
4
- export { PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE } from './PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE'
5
- export { PRESET_MULTI_GRID_ROUND_STYLE } from './PRESET_MULTI_GRID_ROUND_STYLE'
6
- export { PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE'
7
- export { PRESET_MULTI_GRID_SEPARATE_GRID } from './PRESET_MULTI_GRID_SEPARATE_GRID'
8
- export { PRESET_MULTI_GRID_SIMPLE } from './PRESET_MULTI_GRID_SIMPLE'
9
- export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE'
10
- export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID'
11
- export { PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE'
12
- 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_SIMPLE } from './PRESET_MULTI_GRID_DIVERGING_SIMPLE'
3
+ export { PRESET_MULTI_GRID_DIVERGING } from './PRESET_MULTI_GRID_DIVERGING'
4
+ export { PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE } from './PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE'
5
+ export { PRESET_MULTI_GRID_ROUND_STYLE } from './PRESET_MULTI_GRID_ROUND_STYLE'
6
+ export { PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE'
7
+ export { PRESET_MULTI_GRID_SEPARATE_GRID } from './PRESET_MULTI_GRID_SEPARATE_GRID'
8
+ export { PRESET_MULTI_GRID_SIMPLE } from './PRESET_MULTI_GRID_SIMPLE'
9
+ export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE'
10
+ export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID'
11
+ export { PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE } from './PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE'
12
+ export { PRESET_MULTI_LINES_SEPARATE_GRID } from './PRESET_MULTI_LINES_SEPARATE_GRID'
@@ -1,39 +1,53 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
-
4
- export const PRESET_MULTI_VALUE_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
5
- & Partial<PresetNoneDataPluginParams>> = {
6
- name: 'PRESET_MULTI_VALUE_BASIC',
7
- description: 'Basic MultiValue',
8
- descriptionZh: '基本MultiValue參數',
9
- chartParams: {
10
- colors: {
11
- light: {
12
- label: [
13
- "#7DD3C4",
14
- "#FFA0A0",
15
- "#6CBAFF",
16
- "#55D339",
17
- "#F9B052",
18
- "#FF6C6C",
19
- "#8E6BC9",
20
- "#0088FF",
21
- "#904026",
22
- "#C4C4C4"
23
- ],
24
- }
25
- },
26
- padding: {
27
- top: 40,
28
- right: 40,
29
- bottom: 100,
30
- left: 80
31
- },
32
- },
33
- pluginParams: {
34
- MultiValueLegend: {
35
- placement: 'bottom',
36
- padding: 14,
37
- }
38
- }
39
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_MULTI_VALUE_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_MULTI_VALUE_BASIC',
7
+ description: 'Basic MultiValue',
8
+ descriptionZh: '基本MultiValue參數',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#7DD3C4",
14
+ "#FFA0A0",
15
+ "#6CBAFF",
16
+ "#55D339",
17
+ "#F9B052",
18
+ "#FF6C6C",
19
+ "#8E6BC9",
20
+ "#0088FF",
21
+ "#904026",
22
+ "#C4C4C4"
23
+ ],
24
+ },
25
+ dark: {
26
+ label: [
27
+ "#7DD3C4",
28
+ "#FFA0A0",
29
+ "#6CBAFF",
30
+ "#55D339",
31
+ "#F9B052",
32
+ "#FF6C6C",
33
+ "#8E6BC9",
34
+ "#0088FF",
35
+ "#904026",
36
+ "#C4C4C4"
37
+ ]
38
+ }
39
+ },
40
+ padding: {
41
+ top: 40,
42
+ right: 40,
43
+ bottom: 100,
44
+ left: 80
45
+ },
46
+ },
47
+ pluginParams: {
48
+ MultiValueLegend: {
49
+ placement: 'bottom',
50
+ padding: 14,
51
+ }
52
+ }
53
+ }