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

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 (70) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +110 -29
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/dist/src/index.d.ts +1 -0
  5. package/dist/src/multiValue/PRESET_MULTI_VALUE_BASIC.d.ts +4 -0
  6. package/dist/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.d.ts +4 -0
  7. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.d.ts +4 -0
  8. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
  9. package/dist/src/multiValue/index.d.ts +4 -0
  10. package/dist/src/params.d.ts +2 -1
  11. package/dist/src/types.d.ts +29 -1
  12. package/lib/core-types.ts +7 -7
  13. package/lib/plugins-basic-types.ts +6 -6
  14. package/package.json +42 -42
  15. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -56
  16. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -52
  17. package/src/grid/PRESET_BARS_ROUND.ts +39 -39
  18. package/src/grid/PRESET_BARS_THIN.ts +36 -36
  19. package/src/grid/PRESET_GRID_BASIC.ts +27 -27
  20. package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -44
  21. package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -35
  22. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -35
  23. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -40
  24. package/src/grid/PRESET_LINES_BASIC.ts +35 -35
  25. package/src/grid/PRESET_LINES_CURVE.ts +38 -38
  26. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -37
  27. package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -51
  28. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -37
  29. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -40
  30. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -39
  31. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -43
  32. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -48
  33. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -47
  34. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -47
  35. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -45
  36. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -48
  37. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -50
  38. package/src/grid/index.ts +22 -22
  39. package/src/index.ts +5 -4
  40. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -38
  41. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -86
  42. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -58
  43. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -60
  44. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -86
  45. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -104
  46. package/src/multiGrid/index.ts +6 -6
  47. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -0
  48. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +26 -0
  49. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +26 -0
  50. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +26 -0
  51. package/src/multiValue/index.ts +4 -0
  52. package/src/params.ts +71 -60
  53. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -18
  54. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
  55. package/src/series/PRESET_PIE_BASIC.ts +18 -18
  56. package/src/series/PRESET_PIE_DONUT.ts +23 -23
  57. package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
  58. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
  59. package/src/series/PRESET_ROSE_BASIC.ts +19 -19
  60. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +24 -24
  61. package/src/series/PRESET_SERIES_BASIC.ts +16 -16
  62. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -17
  63. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -18
  64. package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -18
  65. package/src/series/index.ts +13 -13
  66. package/src/tree/PRESET_TREE_BASIC.ts +27 -27
  67. package/src/types.ts +321 -267
  68. package/tsconfig.base.json +13 -13
  69. package/tsconfig.json +2 -2
  70. package/vite.config.js +22 -22
@@ -1,36 +1,36 @@
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_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_BARS_THIN',
10
- description: '細長條圖',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 120,
16
- left: 60
17
- },
18
- },
19
- allPluginParams: {
20
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
21
- Bars: {
22
- barWidth: 20,
23
- barPadding: 1,
24
- barGroupPadding: 10
25
- },
26
- GroupAxis: {},
27
- ValueAxis: {},
28
- GroupAux: {},
29
- GridLegend: {
30
- // position: 'bottom',
31
- // justify: 'center',
32
- placement: 'bottom',
33
- padding: 14,
34
- }
35
- }
36
- }
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_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_BARS_THIN',
10
+ description: '細長條圖',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ },
19
+ allPluginParams: {
20
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
21
+ Bars: {
22
+ barWidth: 20,
23
+ barPadding: 1,
24
+ barGroupPadding: 10
25
+ },
26
+ GroupAxis: {},
27
+ ValueAxis: {},
28
+ GroupAux: {},
29
+ GridLegend: {
30
+ // position: 'bottom',
31
+ // justify: 'center',
32
+ placement: 'bottom',
33
+ padding: 14,
34
+ }
35
+ }
36
+ }
@@ -1,27 +1,27 @@
1
- import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_GRID_BASIC',
8
- description: '基本Grid參數',
9
- chartParams: {
10
- padding: {
11
- top: 60,
12
- right: 60,
13
- bottom: 120,
14
- left: 60
15
- },
16
- },
17
- allPluginParams: {
18
- // ...ALL_PLUGIN_PARAMS_GRID,
19
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
20
- GridLegend: {
21
- // position: 'bottom',
22
- // justify: 'center',
23
- placement: 'bottom',
24
- padding: 14,
25
- }
26
- }
27
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_BASIC',
8
+ description: '基本Grid參數',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ // ...ALL_PLUGIN_PARAMS_GRID,
19
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
20
+ GridLegend: {
21
+ // position: 'bottom',
22
+ // justify: 'center',
23
+ placement: 'bottom',
24
+ padding: 14,
25
+ }
26
+ }
27
+ }
@@ -1,44 +1,44 @@
1
- import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_GRID_HORIZONTAL',
8
- description: '橫向圖',
9
- chartParams: {
10
- // 間距下面及左邊留空
11
- padding: {
12
- top: 60,
13
- right: 60,
14
- bottom: 120,
15
- left: 160
16
- },
17
- },
18
- dataFormatter: {
19
- grid: {
20
- valueAxis: {
21
- position: 'bottom'
22
- // position: 'top'
23
- // position: 'left'
24
- // position: 'right'
25
- },
26
- groupAxis: {
27
- position: 'left'
28
- // position: 'right'
29
- // position: 'bottom'
30
- // position: 'top'
31
- },
32
- }
33
- },
34
- allPluginParams: {
35
- // ...ALL_PLUGIN_PARAMS_GRID,
36
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
37
- GridLegend: {
38
- // position: 'bottom',
39
- // justify: 'center',
40
- placement: 'bottom',
41
- padding: 14,
42
- }
43
- }
44
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_HORIZONTAL',
8
+ description: '橫向圖',
9
+ chartParams: {
10
+ // 間距下面及左邊留空
11
+ padding: {
12
+ top: 60,
13
+ right: 60,
14
+ bottom: 120,
15
+ left: 160
16
+ },
17
+ },
18
+ dataFormatter: {
19
+ grid: {
20
+ valueAxis: {
21
+ position: 'bottom'
22
+ // position: 'top'
23
+ // position: 'left'
24
+ // position: 'right'
25
+ },
26
+ groupAxis: {
27
+ position: 'left'
28
+ // position: 'right'
29
+ // position: 'bottom'
30
+ // position: 'top'
31
+ },
32
+ }
33
+ },
34
+ allPluginParams: {
35
+ // ...ALL_PLUGIN_PARAMS_GRID,
36
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
37
+ GridLegend: {
38
+ // position: 'bottom',
39
+ // justify: 'center',
40
+ placement: 'bottom',
41
+ padding: 14,
42
+ }
43
+ }
44
+ }
@@ -1,35 +1,35 @@
1
- import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_GRID_PN_SCALE',
8
- description: '正負值分向圖',
9
- chartParams: {
10
- padding: {
11
- top: 60,
12
- right: 60,
13
- bottom: 120,
14
- left: 60
15
- },
16
- },
17
- dataFormatter: {
18
- grid: {
19
- valueAxis: {
20
- scaleDomain: ['auto', 'auto'],
21
- scaleRange: [0.05, 0.95],
22
- },
23
- }
24
- },
25
- allPluginParams: {
26
- // ...ALL_PLUGIN_PARAMS_GRID,
27
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
28
- GridLegend: {
29
- // position: 'bottom',
30
- // justify: 'center',
31
- placement: 'bottom',
32
- padding: 14,
33
- }
34
- }
35
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_PN_SCALE',
8
+ description: '正負值分向圖',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ dataFormatter: {
18
+ grid: {
19
+ valueAxis: {
20
+ scaleDomain: ['auto', 'auto'],
21
+ scaleRange: [0.05, 0.95],
22
+ },
23
+ }
24
+ },
25
+ allPluginParams: {
26
+ // ...ALL_PLUGIN_PARAMS_GRID,
27
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
28
+ GridLegend: {
29
+ // position: 'bottom',
30
+ // justify: 'center',
31
+ placement: 'bottom',
32
+ padding: 14,
33
+ }
34
+ }
35
+ }
@@ -1,35 +1,35 @@
1
- import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_GRID_ROTATE_AXIS_LABEL',
8
- description: '傾斜標籤',
9
- chartParams: {
10
- // 間距下面加長留空
11
- padding: {
12
- top: 60,
13
- right: 60,
14
- bottom: 160,
15
- left: 60
16
- },
17
- },
18
- allPluginParams: {
19
- // ...ALL_PLUGIN_PARAMS_GRID,
20
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
21
- GroupAux: {
22
- labelRotate: -30
23
- },
24
- GroupAxis: {
25
- tickPadding: 15,
26
- tickTextRotate: -30
27
- },
28
- GridLegend: {
29
- // position: 'bottom',
30
- // justify: 'center',
31
- placement: 'bottom',
32
- padding: 14,
33
- }
34
- }
35
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_ROTATE_AXIS_LABEL',
8
+ description: '傾斜標籤',
9
+ chartParams: {
10
+ // 間距下面加長留空
11
+ padding: {
12
+ top: 60,
13
+ right: 60,
14
+ bottom: 160,
15
+ left: 60
16
+ },
17
+ },
18
+ allPluginParams: {
19
+ // ...ALL_PLUGIN_PARAMS_GRID,
20
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
21
+ GroupAux: {
22
+ labelRotate: -30
23
+ },
24
+ GroupAxis: {
25
+ tickPadding: 15,
26
+ tickTextRotate: -30
27
+ },
28
+ GridLegend: {
29
+ // position: 'bottom',
30
+ // justify: 'center',
31
+ placement: 'bottom',
32
+ padding: 14,
33
+ }
34
+ }
35
+ }
@@ -1,40 +1,40 @@
1
- import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_GRID_SEPARATE_SERIES',
8
- description: '分開顯示Series',
9
- chartParams: {
10
- padding: {
11
- top: 60,
12
- right: 60,
13
- bottom: 160,
14
- left: 60
15
- },
16
- },
17
- dataFormatter: {
18
- grid: {
19
- // seriesSlotIndexes: [0, 1],
20
- separateSeries: true,
21
- },
22
- },
23
- allPluginParams: {
24
- // ...ALL_PLUGIN_PARAMS_GRID,
25
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
26
- GroupAux: {
27
- labelRotate: -30
28
- },
29
- GroupAxis: {
30
- tickPadding: 15,
31
- tickTextRotate: -30
32
- },
33
- GridLegend: {
34
- // position: 'bottom',
35
- // justify: 'center',
36
- placement: 'bottom',
37
- padding: 14,
38
- }
39
- }
40
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
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', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_SEPARATE_SERIES',
8
+ description: '分開顯示Series',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 160,
14
+ left: 60
15
+ },
16
+ },
17
+ dataFormatter: {
18
+ grid: {
19
+ // seriesSlotIndexes: [0, 1],
20
+ separateSeries: true,
21
+ },
22
+ },
23
+ allPluginParams: {
24
+ // ...ALL_PLUGIN_PARAMS_GRID,
25
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
26
+ GroupAux: {
27
+ labelRotate: -30
28
+ },
29
+ GroupAxis: {
30
+ tickPadding: 15,
31
+ tickTextRotate: -30
32
+ },
33
+ GridLegend: {
34
+ // position: 'bottom',
35
+ // justify: 'center',
36
+ placement: 'bottom',
37
+ padding: 14,
38
+ }
39
+ }
40
+ }
@@ -1,35 +1,35 @@
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_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINES_BASIC',
10
- description: '基本Lines參數',
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
- ValueAxis: {},
26
- GroupAux: {},
27
- GridLegend: {
28
- // position: 'bottom',
29
- // justify: 'center',
30
- placement: 'bottom',
31
- padding: 14,
32
- listRectHeight: 2
33
- }
34
- }
35
- }
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_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_BASIC',
10
+ description: '基本Lines參數',
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
+ ValueAxis: {},
26
+ GroupAux: {},
27
+ GridLegend: {
28
+ // position: 'bottom',
29
+ // justify: 'center',
30
+ placement: 'bottom',
31
+ padding: 14,
32
+ listRectHeight: 2
33
+ }
34
+ }
35
+ }
@@ -1,38 +1,38 @@
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_CURVE: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINES_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
- allPluginParams: {
21
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
- Lines: {
23
- lineCurve: 'curveMonotoneX',
24
- lineWidth: 3
25
- },
26
- Dots: {},
27
- GroupAxis: {},
28
- ValueAxis: {},
29
- GroupAux: {},
30
- GridLegend: {
31
- // position: 'bottom',
32
- // justify: 'center',
33
- placement: 'bottom',
34
- padding: 14,
35
- listRectHeight: 2
36
- }
37
- }
38
- }
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_CURVE: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_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
+ allPluginParams: {
21
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
+ Lines: {
23
+ lineCurve: 'curveMonotoneX',
24
+ lineWidth: 3
25
+ },
26
+ Dots: {},
27
+ GroupAxis: {},
28
+ ValueAxis: {},
29
+ GroupAux: {},
30
+ GridLegend: {
31
+ // position: 'bottom',
32
+ // justify: 'center',
33
+ placement: 'bottom',
34
+ padding: 14,
35
+ listRectHeight: 2
36
+ }
37
+ }
38
+ }
@@ -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
+ }