@orbcharts/presets-basic 3.0.0-beta.5 → 3.0.0-beta.6

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 (78) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +238 -148
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/dist/src/index.d.ts +1 -0
  5. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BASIC.d.ts +4 -0
  6. package/dist/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.d.ts +4 -0
  7. package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.d.ts +4 -0
  8. package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.d.ts +4 -0
  9. package/dist/src/relationship/index.d.ts +4 -0
  10. package/dist/src/tree/PRESET_TREE_MAP_BASIC.d.ts +4 -0
  11. package/dist/src/tree/index.d.ts +1 -1
  12. package/dist/src/types.d.ts +26 -16
  13. package/lib/core-types.ts +7 -7
  14. package/lib/plugins-basic-types.ts +6 -6
  15. package/package.json +42 -42
  16. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -56
  17. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -52
  18. package/src/grid/PRESET_BARS_ROUND.ts +39 -39
  19. package/src/grid/PRESET_BARS_THIN.ts +36 -36
  20. package/src/grid/PRESET_GRID_BASIC.ts +27 -27
  21. package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -44
  22. package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -35
  23. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -35
  24. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -40
  25. package/src/grid/PRESET_LINES_BASIC.ts +35 -35
  26. package/src/grid/PRESET_LINES_CURVE.ts +38 -38
  27. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -37
  28. package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -51
  29. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -37
  30. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -40
  31. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -39
  32. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -43
  33. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -48
  34. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -47
  35. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -47
  36. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -45
  37. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -48
  38. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -50
  39. package/src/grid/index.ts +22 -22
  40. package/src/index.ts +6 -5
  41. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -38
  42. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -86
  43. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -58
  44. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -60
  45. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -86
  46. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -104
  47. package/src/multiGrid/index.ts +6 -6
  48. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -23
  49. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +26 -26
  50. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +26 -26
  51. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +26 -26
  52. package/src/multiValue/index.ts +3 -3
  53. package/src/params.ts +71 -71
  54. package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +23 -0
  55. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +30 -0
  56. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +28 -0
  57. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +25 -0
  58. package/src/relationship/index.ts +4 -0
  59. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -18
  60. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
  61. package/src/series/PRESET_PIE_BASIC.ts +18 -18
  62. package/src/series/PRESET_PIE_DONUT.ts +23 -23
  63. package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
  64. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
  65. package/src/series/PRESET_ROSE_BASIC.ts +19 -19
  66. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +24 -24
  67. package/src/series/PRESET_SERIES_BASIC.ts +16 -16
  68. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -17
  69. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -18
  70. package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -18
  71. package/src/series/index.ts +13 -13
  72. package/src/tree/{PRESET_TREE_BASIC.ts → PRESET_TREE_MAP_BASIC.ts} +27 -27
  73. package/src/tree/index.ts +1 -1
  74. package/src/types.ts +343 -321
  75. package/tsconfig.base.json +13 -13
  76. package/tsconfig.json +2 -2
  77. package/vite.config.js +22 -22
  78. package/dist/src/tree/PRESET_TREE_BASIC.d.ts +0 -4
@@ -1,37 +1,37 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams,
3
- PresetNoneDataPluginParams
4
- } from '../types'
5
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
-
7
- export const PRESET_LINES_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINES_HIGHLIGHT_GROUP_DOTS',
10
- description: '折線圖及Highlight Group圓點',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 120,
16
- left: 60
17
- },
18
- highlightTarget: 'group'
19
- },
20
- allPluginParams: {
21
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
- Lines: {},
23
- Dots: {
24
- onlyShowHighlighted: false
25
- },
26
- GroupAxis: {},
27
- ValueAxis: {},
28
- GroupAux: {},
29
- GridLegend: {
30
- // position: 'bottom',
31
- // justify: 'center',
32
- placement: 'bottom',
33
- padding: 14,
34
- listRectHeight: 2
35
- }
36
- }
37
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINES_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_HIGHLIGHT_GROUP_DOTS',
10
+ description: '折線圖及Highlight Group圓點',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'group'
19
+ },
20
+ allPluginParams: {
21
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
+ Lines: {},
23
+ Dots: {
24
+ onlyShowHighlighted: false
25
+ },
26
+ GroupAxis: {},
27
+ ValueAxis: {},
28
+ GroupAux: {},
29
+ GridLegend: {
30
+ // position: 'bottom',
31
+ // justify: 'center',
32
+ placement: 'bottom',
33
+ padding: 14,
34
+ listRectHeight: 2
35
+ }
36
+ }
37
+ }
@@ -1,51 +1,51 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams,
3
- PresetNoneDataPluginParams
4
- } from '../types'
5
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
-
7
- export const PRESET_LINES_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINES_HORIZONTAL',
10
- description: '橫向折線圖',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 120,
16
- left: 160
17
- },
18
- highlightTarget: 'series'
19
- },
20
- dataFormatter: {
21
- grid: {
22
- valueAxis: {
23
- position: 'bottom'
24
- // position: 'top'
25
- // position: 'left'
26
- // position: 'right'
27
- },
28
- groupAxis: {
29
- position: 'left'
30
- // position: 'right'
31
- // position: 'bottom'
32
- // position: 'top'
33
- },
34
- }
35
- },
36
- allPluginParams: {
37
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
38
- Lines: {},
39
- Dots: {},
40
- GroupAxis: {},
41
- ValueAxis: {},
42
- GroupAux: {},
43
- GridLegend: {
44
- // position: 'bottom',
45
- // justify: 'center',
46
- placement: 'bottom',
47
- padding: 14,
48
- listRectHeight: 2
49
- }
50
- }
51
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINES_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_HORIZONTAL',
10
+ description: '橫向折線圖',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 160
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ dataFormatter: {
21
+ // grid: {
22
+ valueAxis: {
23
+ position: 'bottom'
24
+ // position: 'top'
25
+ // position: 'left'
26
+ // position: 'right'
27
+ },
28
+ groupAxis: {
29
+ position: 'left'
30
+ // position: 'right'
31
+ // position: 'bottom'
32
+ // position: 'top'
33
+ },
34
+ // }
35
+ },
36
+ allPluginParams: {
37
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
38
+ Lines: {},
39
+ Dots: {},
40
+ GroupAxis: {},
41
+ ValueAxis: {},
42
+ GroupAux: {},
43
+ GridLegend: {
44
+ // position: 'bottom',
45
+ // justify: 'center',
46
+ placement: 'bottom',
47
+ padding: 14,
48
+ listRectHeight: 2
49
+ }
50
+ }
51
+ }
@@ -1,37 +1,37 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams,
3
- PresetNoneDataPluginParams
4
- } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
-
7
- export const PRESET_LINES_LOOSE_TICKS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINES_LOOSE_TICKS',
10
- description: '寬鬆標籤',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 120,
16
- left: 60
17
- },
18
- highlightTarget: 'series'
19
- },
20
- allPluginParams: {
21
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
- Lines: {},
23
- Dots: {},
24
- GroupAxis: {
25
- ticks: 6
26
- },
27
- ValueAxis: {},
28
- GroupAux: {},
29
- GridLegend: {
30
- // position: 'bottom',
31
- // justify: 'center',
32
- placement: 'bottom',
33
- padding: 14,
34
- listRectHeight: 2
35
- }
36
- }
37
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINES_LOOSE_TICKS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_LOOSE_TICKS',
10
+ description: '寬鬆標籤',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ allPluginParams: {
21
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
+ Lines: {},
23
+ Dots: {},
24
+ GroupAxis: {
25
+ ticks: 6
26
+ },
27
+ ValueAxis: {},
28
+ GroupAux: {},
29
+ GridLegend: {
30
+ // position: 'bottom',
31
+ // justify: 'center',
32
+ placement: 'bottom',
33
+ padding: 14,
34
+ listRectHeight: 2
35
+ }
36
+ }
37
+ }
@@ -1,40 +1,40 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams,
3
- PresetNoneDataPluginParams
4
- } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
-
7
- export const PRESET_LINES_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINES_ROTATE_AXIS_LABEL',
10
- description: '傾斜標籤',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 160,
16
- left: 60
17
- },
18
- highlightTarget: 'series'
19
- },
20
- allPluginParams: {
21
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
- Lines: {},
23
- Dots: {},
24
- GroupAxis: {
25
- tickPadding: 15,
26
- tickTextRotate: -30
27
- },
28
- ValueAxis: {},
29
- GroupAux: {
30
- labelRotate: -30
31
- },
32
- GridLegend: {
33
- // position: 'bottom',
34
- // justify: 'center',
35
- placement: 'bottom',
36
- padding: 14,
37
- listRectHeight: 2
38
- }
39
- }
40
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINES_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_ROTATE_AXIS_LABEL',
10
+ description: '傾斜標籤',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 160,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ allPluginParams: {
21
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
+ Lines: {},
23
+ Dots: {},
24
+ GroupAxis: {
25
+ tickPadding: 15,
26
+ tickTextRotate: -30
27
+ },
28
+ ValueAxis: {},
29
+ GroupAux: {
30
+ labelRotate: -30
31
+ },
32
+ GridLegend: {
33
+ // position: 'bottom',
34
+ // justify: 'center',
35
+ placement: 'bottom',
36
+ padding: 14,
37
+ listRectHeight: 2
38
+ }
39
+ }
40
+ }
@@ -1,39 +1,39 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams,
3
- PresetNoneDataPluginParams
4
- } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
-
7
- export const PRESET_LINES_WITH_SOLID_DOTS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINES_WITH_SOLID_DOTS',
10
- description: '折線圖及實心圓點',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 120,
16
- left: 60
17
- },
18
- highlightTarget: 'series'
19
- },
20
- allPluginParams: {
21
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
- Lines: {},
23
- Dots: {
24
- radius: 3,
25
- fillColorType: 'series',
26
- onlyShowHighlighted: false
27
- },
28
- GroupAxis: {},
29
- ValueAxis: {},
30
- GroupAux: {},
31
- GridLegend: {
32
- // position: 'bottom',
33
- // justify: 'center',
34
- placement: 'bottom',
35
- padding: 14,
36
- listRectHeight: 2
37
- }
38
- }
39
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINES_WITH_SOLID_DOTS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_WITH_SOLID_DOTS',
10
+ description: '折線圖及實心圓點',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ allPluginParams: {
21
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
+ Lines: {},
23
+ Dots: {
24
+ radius: 3,
25
+ fillColorType: 'label',
26
+ onlyShowHighlighted: false
27
+ },
28
+ GroupAxis: {},
29
+ ValueAxis: {},
30
+ GroupAux: {},
31
+ GridLegend: {
32
+ // position: 'bottom',
33
+ // justify: 'center',
34
+ placement: 'bottom',
35
+ padding: 14,
36
+ listRectHeight: 2
37
+ }
38
+ }
39
+ }
@@ -1,43 +1,43 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams,
3
- PresetNoneDataPluginParams
4
- } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
-
7
- export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINE_AREAS_BASIC',
10
- description: '基本LineArea參數',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 120,
16
- left: 60
17
- },
18
- highlightTarget: 'series'
19
- },
20
- dataFormatter: {
21
- grid: {
22
- groupAxis: {
23
- scalePadding: 0
24
- }
25
- }
26
- },
27
- allPluginParams: {
28
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
29
- Lines: {},
30
- LineAreas: {},
31
- Dots: {},
32
- GroupAxis: {},
33
- ValueAxis: {},
34
- GroupAux: {},
35
- GridLegend: {
36
- // position: 'bottom',
37
- // justify: 'center',
38
- placement: 'bottom',
39
- padding: 14,
40
- listRectHeight: 2
41
- }
42
- }
43
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINE_AREAS_BASIC',
10
+ description: '基本LineArea參數',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ dataFormatter: {
21
+ // grid: {
22
+ groupAxis: {
23
+ scalePadding: 0
24
+ }
25
+ // }
26
+ },
27
+ allPluginParams: {
28
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
29
+ Lines: {},
30
+ LineAreas: {},
31
+ Dots: {},
32
+ GroupAxis: {},
33
+ ValueAxis: {},
34
+ GroupAux: {},
35
+ GridLegend: {
36
+ // position: 'bottom',
37
+ // justify: 'center',
38
+ placement: 'bottom',
39
+ padding: 14,
40
+ listRectHeight: 2
41
+ }
42
+ }
43
+ }
@@ -1,48 +1,48 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams,
3
- PresetNoneDataPluginParams
4
- } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
-
7
- export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINE_AREAS_CURVE',
10
- description: '弧線折線圖',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 120,
16
- left: 60
17
- },
18
- highlightTarget: 'series'
19
- },
20
- dataFormatter: {
21
- grid: {
22
- groupAxis: {
23
- scalePadding: 0
24
- }
25
- }
26
- },
27
- allPluginParams: {
28
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
29
- Lines: {
30
- lineCurve: 'curveMonotoneX',
31
- lineWidth: 3
32
- },
33
- LineAreas: {
34
- lineCurve: 'curveMonotoneX',
35
- },
36
- Dots: {},
37
- GroupAxis: {},
38
- ValueAxis: {},
39
- GroupAux: {},
40
- GridLegend: {
41
- // position: 'bottom',
42
- // justify: 'center',
43
- placement: 'bottom',
44
- padding: 14,
45
- listRectHeight: 2
46
- }
47
- }
48
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINE_AREAS_CURVE',
10
+ description: '弧線折線圖',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ dataFormatter: {
21
+ // grid: {
22
+ groupAxis: {
23
+ scalePadding: 0
24
+ }
25
+ // }
26
+ },
27
+ allPluginParams: {
28
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
29
+ Lines: {
30
+ lineCurve: 'curveMonotoneX',
31
+ lineWidth: 3
32
+ },
33
+ LineAreas: {
34
+ lineCurve: 'curveMonotoneX',
35
+ },
36
+ Dots: {},
37
+ GroupAxis: {},
38
+ ValueAxis: {},
39
+ GroupAux: {},
40
+ GridLegend: {
41
+ // position: 'bottom',
42
+ // justify: 'center',
43
+ placement: 'bottom',
44
+ padding: 14,
45
+ listRectHeight: 2
46
+ }
47
+ }
48
+ }