@orbcharts/presets-basic 3.0.0-alpha.4 → 3.0.0-alpha.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +1383 -362
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.d.ts +4 -0
  5. package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.d.ts +4 -0
  6. package/dist/src/grid/PRESET_BARS_ROUND.d.ts +4 -0
  7. package/dist/src/grid/PRESET_BARS_THIN.d.ts +4 -0
  8. package/dist/src/grid/PRESET_GRID_BASIC.d.ts +4 -0
  9. package/dist/src/grid/PRESET_GRID_HORIZONTAL.d.ts +4 -0
  10. package/dist/src/grid/PRESET_GRID_PN_SCALE.d.ts +4 -0
  11. package/dist/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.d.ts +4 -0
  12. package/dist/src/grid/PRESET_GRID_SEPARATE_SERIES.d.ts +4 -0
  13. package/dist/src/grid/PRESET_LINES_BASIC.d.ts +4 -0
  14. package/dist/src/grid/PRESET_LINES_CURVE.d.ts +4 -0
  15. package/dist/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
  16. package/dist/src/grid/PRESET_LINES_HORIZONTAL.d.ts +4 -0
  17. package/dist/src/grid/PRESET_LINES_LOOSE_TICKS.d.ts +4 -0
  18. package/dist/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.d.ts +4 -0
  19. package/dist/src/grid/PRESET_LINES_WITH_SOLID_DOTS.d.ts +4 -0
  20. package/dist/src/grid/PRESET_LINE_AREAS_BASIC.d.ts +4 -0
  21. package/dist/src/grid/PRESET_LINE_AREAS_CURVE.d.ts +4 -0
  22. package/dist/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
  23. package/dist/src/grid/PRESET_LINE_AREAS_HORIZONTAL.d.ts +4 -0
  24. package/dist/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.d.ts +4 -0
  25. package/dist/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.d.ts +4 -0
  26. package/dist/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.d.ts +4 -0
  27. package/dist/src/grid/index.d.ts +23 -0
  28. package/dist/src/index.d.ts +4 -18
  29. package/dist/src/multiGrid/PRESET_MULTI_GRID_BASIC.d.ts +4 -0
  30. package/dist/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.d.ts +4 -0
  31. package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.d.ts +6 -0
  32. package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.d.ts +4 -0
  33. package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.d.ts +4 -0
  34. package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +4 -0
  35. package/dist/src/multiGrid/index.d.ts +6 -0
  36. package/dist/src/params.d.ts +7 -0
  37. package/dist/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
  38. package/dist/src/series/PRESET_BUBBLES_SEPARATE_SERIES.d.ts +4 -0
  39. package/dist/src/series/PRESET_PIE_BASIC.d.ts +4 -0
  40. package/dist/src/series/PRESET_PIE_DONUT.d.ts +4 -0
  41. package/dist/src/series/PRESET_PIE_HALF_DONUT.d.ts +4 -0
  42. package/dist/src/series/PRESET_PIE_WITH_INNER_LABELS.d.ts +4 -0
  43. package/dist/src/series/PRESET_ROSE_BASIC.d.ts +4 -0
  44. package/dist/src/series/PRESET_ROSE_SCALING_BY_RADIUS.d.ts +4 -0
  45. package/dist/src/series/PRESET_SERIES_BASIC.d.ts +4 -0
  46. package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES.d.ts +4 -0
  47. package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.d.ts +4 -0
  48. package/dist/src/series/PRESET_SERIES_SUM_SERIES.d.ts +4 -0
  49. package/dist/src/series/index.d.ts +12 -0
  50. package/dist/src/tree/PRESET_TREE_BASIC.d.ts +4 -0
  51. package/dist/src/tree/index.d.ts +1 -0
  52. package/dist/src/types.d.ts +116 -37
  53. package/dist/vite.config.d.ts +1 -1
  54. package/package.json +43 -43
  55. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -0
  56. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -0
  57. package/src/grid/PRESET_BARS_ROUND.ts +46 -0
  58. package/src/grid/PRESET_BARS_THIN.ts +43 -0
  59. package/src/grid/PRESET_GRID_BASIC.ts +25 -0
  60. package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -0
  61. package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -0
  62. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -0
  63. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -0
  64. package/src/grid/PRESET_LINES_BASIC.ts +44 -0
  65. package/src/grid/PRESET_LINES_CURVE.ts +47 -0
  66. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -0
  67. package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -0
  68. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -0
  69. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -0
  70. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -0
  71. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -0
  72. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -0
  73. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -0
  74. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -0
  75. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -0
  76. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -0
  77. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -0
  78. package/src/grid/index.ts +23 -0
  79. package/src/index.ts +4 -133
  80. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -0
  81. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -0
  82. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -0
  83. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -0
  84. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -0
  85. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -0
  86. package/src/multiGrid/index.ts +6 -0
  87. package/src/params.ts +57 -0
  88. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -0
  89. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -0
  90. package/src/series/PRESET_PIE_BASIC.ts +19 -0
  91. package/src/series/PRESET_PIE_DONUT.ts +27 -0
  92. package/src/series/PRESET_PIE_HALF_DONUT.ts +40 -0
  93. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +28 -0
  94. package/src/series/PRESET_ROSE_BASIC.ts +19 -0
  95. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +27 -0
  96. package/src/series/PRESET_SERIES_BASIC.ts +15 -0
  97. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -0
  98. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -0
  99. package/src/series/PRESET_SERIES_SUM_SERIES.ts +17 -0
  100. package/src/series/index.ts +13 -0
  101. package/src/tree/PRESET_TREE_BASIC.ts +25 -0
  102. package/src/tree/index.ts +1 -0
  103. package/src/types.ts +242 -58
  104. package/tsconfig.base.json +14 -0
  105. package/tsconfig.json +2 -13
  106. package/vite.config.js +22 -44
  107. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +0 -3
  108. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  109. package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.d.ts +0 -3
  110. package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  111. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING.d.ts +0 -3
  112. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.d.ts +0 -3
  113. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  114. package/dist/src/chartParamsFiles/CP_LEFT_PADDING.d.ts +0 -3
  115. package/dist/src/chartParamsFiles/CP_RIGHT_PADDING.d.ts +0 -3
  116. package/dist/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +0 -3
  117. package/dist/src/chartParamsFiles/index.d.ts +0 -10
  118. package/dist/src/createPreset.d.ts +0 -9
  119. package/dist/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.d.ts +0 -3
  120. package/dist/src/gridDataFormatterFiles/index.d.ts +0 -1
  121. package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.d.ts +0 -4
  122. package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.d.ts +0 -4
  123. package/dist/src/gridPluginParamsFiles/Bars/index.d.ts +0 -2
  124. package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.d.ts +0 -4
  125. package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.d.ts +0 -4
  126. package/dist/src/gridPluginParamsFiles/Dots/index.d.ts +0 -2
  127. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.d.ts +0 -4
  128. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
  129. package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +0 -2
  130. package/dist/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.d.ts +0 -4
  131. package/dist/src/gridPluginParamsFiles/GroupAxis/index.d.ts +0 -1
  132. package/dist/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.d.ts +0 -4
  133. package/dist/src/gridPluginParamsFiles/Lines/index.d.ts +0 -1
  134. package/dist/src/gridPluginParamsFiles/index.d.ts +0 -5
  135. package/dist/src/multiGridDataFormatterFiles/index.d.ts +0 -1
  136. package/dist/src/multiGridPluginParamsFiles/index.d.ts +0 -1
  137. package/dist/src/multiValueDataFormatterFiles/index.d.ts +0 -1
  138. package/dist/src/multiValuePluginParamsFiles/index.d.ts +0 -1
  139. package/dist/src/relationshipDataFormatterFiles/index.d.ts +0 -1
  140. package/dist/src/relationshipPluginParamsFiles/index.d.ts +0 -1
  141. package/dist/src/seriesDataFormatterFiles/index.d.ts +0 -1
  142. package/dist/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.d.ts +0 -4
  143. package/dist/src/seriesPluginParamsFiles/Bubbles/index.d.ts +0 -1
  144. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.d.ts +0 -0
  145. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.d.ts +0 -4
  146. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.d.ts +0 -4
  147. package/dist/src/seriesPluginParamsFiles/Pie/index.d.ts +0 -2
  148. package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.d.ts +0 -4
  149. package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.d.ts +0 -4
  150. package/dist/src/seriesPluginParamsFiles/PieLabels/index.d.ts +0 -2
  151. package/dist/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.d.ts +0 -4
  152. package/dist/src/seriesPluginParamsFiles/SeriesLegend/index.d.ts +0 -1
  153. package/dist/src/seriesPluginParamsFiles/index.d.ts +0 -4
  154. package/dist/src/treeDataFormatterFiles/index.d.ts +0 -1
  155. package/dist/src/treePluginParamsFiles/index.d.ts +0 -1
  156. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +0 -14
  157. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  158. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +0 -14
  159. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  160. package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +0 -14
  161. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +0 -15
  162. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  163. package/src/chartParamsFiles/CP_LEFT_PADDING.ts +0 -14
  164. package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +0 -14
  165. package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +0 -14
  166. package/src/chartParamsFiles/index.ts +0 -10
  167. package/src/createPreset.ts +0 -88
  168. package/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.ts +0 -16
  169. package/src/gridDataFormatterFiles/index.ts +0 -1
  170. package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +0 -15
  171. package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +0 -14
  172. package/src/gridPluginParamsFiles/Bars/index.ts +0 -2
  173. package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -12
  174. package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +0 -14
  175. package/src/gridPluginParamsFiles/Dots/index.ts +0 -2
  176. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +0 -14
  177. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -15
  178. package/src/gridPluginParamsFiles/GridLegend/index.ts +0 -2
  179. package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +0 -12
  180. package/src/gridPluginParamsFiles/GroupAxis/index.ts +0 -1
  181. package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +0 -13
  182. package/src/gridPluginParamsFiles/Lines/index.ts +0 -1
  183. package/src/gridPluginParamsFiles/index.ts +0 -6
  184. package/src/multiGridDataFormatterFiles/index.ts +0 -1
  185. package/src/multiGridPluginParamsFiles/index.ts +0 -1
  186. package/src/multiValueDataFormatterFiles/index.ts +0 -1
  187. package/src/multiValuePluginParamsFiles/index.ts +0 -1
  188. package/src/relationshipDataFormatterFiles/index.ts +0 -1
  189. package/src/relationshipPluginParamsFiles/index.ts +0 -1
  190. package/src/seriesDataFormatterFiles/index.ts +0 -1
  191. package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +0 -12
  192. package/src/seriesPluginParamsFiles/Bubbles/index.ts +0 -1
  193. package/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.ts +0 -0
  194. package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +0 -12
  195. package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +0 -14
  196. package/src/seriesPluginParamsFiles/Pie/index.ts +0 -2
  197. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +0 -13
  198. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +0 -13
  199. package/src/seriesPluginParamsFiles/PieLabels/index.ts +0 -2
  200. package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +0 -12
  201. package/src/seriesPluginParamsFiles/SeriesLegend/index.ts +0 -1
  202. package/src/seriesPluginParamsFiles/index.ts +0 -4
  203. package/src/treeDataFormatterFiles/index.ts +0 -1
  204. package/src/treePluginParamsFiles/index.ts +0 -1
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "@orbcharts/presets-basic",
3
- "version": "3.0.0-alpha.4",
4
- "description": "presets for OrbCharts",
5
- "author": "Blue Planet Inc.",
6
- "license": "Apache-2.0",
7
- "keywords": [
8
- "d3",
9
- "rxjs",
10
- "svg",
11
- "visualization",
12
- "infographic",
13
- "graph",
14
- "chart"
15
- ],
16
- "private": false,
17
- "publishConfig": {
18
- "access": "public",
19
- "registry": "https://registry.npmjs.org/"
20
- },
21
- "files": [
22
- "*"
23
- ],
24
- "module": "./dist/orbcharts-presets-basic.es.js",
25
- "types": "./dist/src/index.d.ts",
26
- "scripts": {
27
- "test": "echo \"Error: no test specified\" && exit 1",
28
- "build": "vite build --mode release"
29
- },
30
- "devDependencies": {
31
- "@types/d3": "^7.4.0",
32
- "ts-loader": "^9.4.2",
33
- "typescript": "^5.0.4",
34
- "vite": "^5.3.5",
35
- "vite-plugin-dts": "^3.7.3"
36
- },
37
- "dependencies": {
38
- "@orbcharts/core": "^3.0.0-alpha.27",
39
- "@orbcharts/plugins-basic": "^3.0.0-alpha.31",
40
- "d3": "^7.8.5",
41
- "rxjs": "^7.8.1"
42
- }
43
- }
1
+ {
2
+ "name": "@orbcharts/presets-basic",
3
+ "version": "3.0.0-alpha.41",
4
+ "description": "presets for OrbCharts",
5
+ "author": "Blue Planet Inc.",
6
+ "license": "Apache-2.0",
7
+ "keywords": [
8
+ "d3",
9
+ "rxjs",
10
+ "svg",
11
+ "visualization",
12
+ "infographic",
13
+ "graph",
14
+ "chart"
15
+ ],
16
+ "private": false,
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "registry": "https://registry.npmjs.org/"
20
+ },
21
+ "files": [
22
+ "*"
23
+ ],
24
+ "module": "./dist/orbcharts-presets-basic.es.js",
25
+ "types": "./dist/src/index.d.ts",
26
+ "scripts": {
27
+ "test": "echo \"Error: no test specified\" && exit 1",
28
+ "build": "vite build --mode production"
29
+ },
30
+ "devDependencies": {
31
+ "@types/d3": "^7.4.0",
32
+ "ts-loader": "^9.4.2",
33
+ "typescript": "^5.0.4",
34
+ "vite": "^5.3.5",
35
+ "vite-plugin-dts": "^3.7.3"
36
+ },
37
+ "dependencies": {
38
+ "@orbcharts/core": "^3.0.0-alpha.61",
39
+ "@orbcharts/plugins-basic": "^3.0.0-alpha.70",
40
+ "d3": "^7.8.5",
41
+ "rxjs": "^7.8.1"
42
+ }
43
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }