@orbcharts/presets-basic 3.0.0-beta.2 → 3.0.0-beta.4

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 (68) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +85 -25
  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_SCATTER_BUBBLES_LINEAR_OPACITY.d.ts +4 -0
  7. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
  8. package/dist/src/multiValue/index.d.ts +3 -0
  9. package/dist/src/params.d.ts +2 -1
  10. package/dist/src/types.d.ts +29 -1
  11. package/lib/core-types.ts +7 -7
  12. package/lib/plugins-basic-types.ts +6 -6
  13. package/package.json +42 -42
  14. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -56
  15. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -52
  16. package/src/grid/PRESET_BARS_ROUND.ts +39 -39
  17. package/src/grid/PRESET_BARS_THIN.ts +36 -36
  18. package/src/grid/PRESET_GRID_BASIC.ts +27 -27
  19. package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -44
  20. package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -35
  21. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -35
  22. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -40
  23. package/src/grid/PRESET_LINES_BASIC.ts +35 -35
  24. package/src/grid/PRESET_LINES_CURVE.ts +38 -38
  25. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -37
  26. package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -51
  27. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -37
  28. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -40
  29. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -39
  30. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -43
  31. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -48
  32. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -47
  33. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -47
  34. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -45
  35. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -48
  36. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -50
  37. package/src/grid/index.ts +22 -22
  38. package/src/index.ts +5 -4
  39. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -38
  40. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -86
  41. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -58
  42. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -60
  43. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -86
  44. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -104
  45. package/src/multiGrid/index.ts +6 -6
  46. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -0
  47. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +26 -0
  48. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +26 -0
  49. package/src/multiValue/index.ts +3 -0
  50. package/src/params.ts +71 -60
  51. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -18
  52. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
  53. package/src/series/PRESET_PIE_BASIC.ts +18 -18
  54. package/src/series/PRESET_PIE_DONUT.ts +23 -23
  55. package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
  56. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
  57. package/src/series/PRESET_ROSE_BASIC.ts +19 -19
  58. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +24 -24
  59. package/src/series/PRESET_SERIES_BASIC.ts +16 -16
  60. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -17
  61. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -18
  62. package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -18
  63. package/src/series/index.ts +13 -13
  64. package/src/tree/PRESET_TREE_BASIC.ts +27 -27
  65. package/src/types.ts +321 -267
  66. package/tsconfig.base.json +13 -13
  67. package/tsconfig.json +2 -2
  68. package/vite.config.js +22 -22
@@ -1,47 +1,47 @@
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_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINE_AREAS_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
- },
25
- groupAxis: {
26
- position: 'left',
27
- scalePadding: 0
28
- },
29
- }
30
- },
31
- allPluginParams: {
32
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
33
- Lines: {},
34
- LineAreas: {},
35
- Dots: {},
36
- GroupAxis: {},
37
- ValueAxis: {},
38
- GroupAux: {},
39
- GridLegend: {
40
- // position: 'bottom',
41
- // justify: 'center',
42
- placement: 'bottom',
43
- padding: 14,
44
- listRectHeight: 2
45
- }
46
- }
47
- }
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_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINE_AREAS_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
+ },
25
+ groupAxis: {
26
+ position: 'left',
27
+ scalePadding: 0
28
+ },
29
+ }
30
+ },
31
+ allPluginParams: {
32
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
33
+ Lines: {},
34
+ LineAreas: {},
35
+ Dots: {},
36
+ GroupAxis: {},
37
+ ValueAxis: {},
38
+ GroupAux: {},
39
+ GridLegend: {
40
+ // position: 'bottom',
41
+ // justify: 'center',
42
+ placement: 'bottom',
43
+ padding: 14,
44
+ listRectHeight: 2
45
+ }
46
+ }
47
+ }
@@ -1,45 +1,45 @@
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_LOOSE_TICKS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINE_AREAS_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
- 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
- ticks: 6
34
- },
35
- ValueAxis: {},
36
- GroupAux: {},
37
- GridLegend: {
38
- // position: 'bottom',
39
- // justify: 'center',
40
- placement: 'bottom',
41
- padding: 14,
42
- listRectHeight: 2
43
- }
44
- }
45
- }
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_LOOSE_TICKS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINE_AREAS_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
+ 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
+ ticks: 6
34
+ },
35
+ ValueAxis: {},
36
+ GroupAux: {},
37
+ GridLegend: {
38
+ // position: 'bottom',
39
+ // justify: 'center',
40
+ placement: 'bottom',
41
+ padding: 14,
42
+ listRectHeight: 2
43
+ }
44
+ }
45
+ }
@@ -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_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINE_AREAS_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
- 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
- tickPadding: 15,
34
- tickTextRotate: -30
35
- },
36
- ValueAxis: {},
37
- GroupAux: {
38
- labelRotate: -30
39
- },
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_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINE_AREAS_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
+ 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
+ tickPadding: 15,
34
+ tickTextRotate: -30
35
+ },
36
+ ValueAxis: {},
37
+ GroupAux: {
38
+ labelRotate: -30
39
+ },
40
+ GridLegend: {
41
+ // position: 'bottom',
42
+ // justify: 'center',
43
+ placement: 'bottom',
44
+ padding: 14,
45
+ listRectHeight: 2
46
+ }
47
+ }
48
+ }
@@ -1,50 +1,50 @@
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_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
- & Partial<PresetNoneDataPluginParams>> = {
9
- name: 'PRESET_LINE_AREAS_SEPARATE_SERIES',
10
- description: 'LineAreas 分開顯示Series',
11
- chartParams: {
12
- padding: {
13
- top: 60,
14
- right: 60,
15
- bottom: 160,
16
- left: 60
17
- },
18
- highlightTarget: 'series'
19
- },
20
- dataFormatter: {
21
- grid: {
22
- // seriesSlotIndexes: [0, 1],
23
- separateSeries: true,
24
- groupAxis: {
25
- scalePadding: 0
26
- }
27
- },
28
- },
29
- allPluginParams: {
30
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
31
- Lines: {},
32
- LineAreas: {},
33
- Dots: {},
34
- GroupAxis: {
35
- tickPadding: 15,
36
- tickTextRotate: -30
37
- },
38
- ValueAxis: {},
39
- GroupAux: {
40
- labelRotate: -30
41
- },
42
- GridLegend: {
43
- // position: 'bottom',
44
- // justify: 'center',
45
- placement: 'bottom',
46
- padding: 14,
47
- listRectHeight: 2
48
- }
49
- }
50
- }
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_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINE_AREAS_SEPARATE_SERIES',
10
+ description: 'LineAreas 分開顯示Series',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 160,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ dataFormatter: {
21
+ grid: {
22
+ // seriesSlotIndexes: [0, 1],
23
+ separateSeries: true,
24
+ groupAxis: {
25
+ scalePadding: 0
26
+ }
27
+ },
28
+ },
29
+ allPluginParams: {
30
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
31
+ Lines: {},
32
+ LineAreas: {},
33
+ Dots: {},
34
+ GroupAxis: {
35
+ tickPadding: 15,
36
+ tickTextRotate: -30
37
+ },
38
+ ValueAxis: {},
39
+ GroupAux: {
40
+ labelRotate: -30
41
+ },
42
+ GridLegend: {
43
+ // position: 'bottom',
44
+ // justify: 'center',
45
+ placement: 'bottom',
46
+ padding: 14,
47
+ listRectHeight: 2
48
+ }
49
+ }
50
+ }
package/src/grid/index.ts CHANGED
@@ -1,23 +1,23 @@
1
- export { PRESET_BARS_HORIZONTAL_AND_ROUND } from './PRESET_BARS_HORIZONTAL_AND_ROUND'
2
- export { PRESET_BARS_HORIZONTAL_AND_THIN } from './PRESET_BARS_HORIZONTAL_AND_THIN'
3
- export { PRESET_BARS_ROUND } from './PRESET_BARS_ROUND'
4
- export { PRESET_BARS_THIN } from './PRESET_BARS_THIN'
5
- export { PRESET_GRID_BASIC } from './PRESET_GRID_BASIC'
6
- export { PRESET_GRID_HORIZONTAL } from './PRESET_GRID_HORIZONTAL'
7
- export { PRESET_GRID_PN_SCALE } from './PRESET_GRID_PN_SCALE'
8
- export { PRESET_GRID_ROTATE_AXIS_LABEL } from './PRESET_GRID_ROTATE_AXIS_LABEL'
9
- export { PRESET_GRID_SEPARATE_SERIES } from './PRESET_GRID_SEPARATE_SERIES'
10
- export { PRESET_LINE_AREAS_BASIC } from './PRESET_LINE_AREAS_BASIC'
11
- export { PRESET_LINE_AREAS_CURVE } from './PRESET_LINE_AREAS_CURVE'
12
- // export { PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS } from './PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS'
13
- export { PRESET_LINE_AREAS_HORIZONTAL } from './PRESET_LINE_AREAS_HORIZONTAL'
14
- export { PRESET_LINE_AREAS_LOOSE_TICKS } from './PRESET_LINE_AREAS_LOOSE_TICKS'
15
- export { PRESET_LINE_AREAS_ROTATE_AXIS_LABEL } from './PRESET_LINE_AREAS_ROTATE_AXIS_LABEL'
16
- export { PRESET_LINE_AREAS_SEPARATE_SERIES } from './PRESET_LINE_AREAS_SEPARATE_SERIES'
17
- export { PRESET_LINES_BASIC } from './PRESET_LINES_BASIC'
18
- export { PRESET_LINES_CURVE } from './PRESET_LINES_CURVE'
19
- // export { PRESET_LINES_HIGHLIGHT_GROUP_DOTS } from './PRESET_LINES_HIGHLIGHT_GROUP_DOTS'
20
- export { PRESET_LINES_HORIZONTAL } from './PRESET_LINES_HORIZONTAL'
21
- export { PRESET_LINES_LOOSE_TICKS } from './PRESET_LINES_LOOSE_TICKS'
22
- export { PRESET_LINES_ROTATE_AXIS_LABEL } from './PRESET_LINES_ROTATE_AXIS_LABEL'
1
+ export { PRESET_BARS_HORIZONTAL_AND_ROUND } from './PRESET_BARS_HORIZONTAL_AND_ROUND'
2
+ export { PRESET_BARS_HORIZONTAL_AND_THIN } from './PRESET_BARS_HORIZONTAL_AND_THIN'
3
+ export { PRESET_BARS_ROUND } from './PRESET_BARS_ROUND'
4
+ export { PRESET_BARS_THIN } from './PRESET_BARS_THIN'
5
+ export { PRESET_GRID_BASIC } from './PRESET_GRID_BASIC'
6
+ export { PRESET_GRID_HORIZONTAL } from './PRESET_GRID_HORIZONTAL'
7
+ export { PRESET_GRID_PN_SCALE } from './PRESET_GRID_PN_SCALE'
8
+ export { PRESET_GRID_ROTATE_AXIS_LABEL } from './PRESET_GRID_ROTATE_AXIS_LABEL'
9
+ export { PRESET_GRID_SEPARATE_SERIES } from './PRESET_GRID_SEPARATE_SERIES'
10
+ export { PRESET_LINE_AREAS_BASIC } from './PRESET_LINE_AREAS_BASIC'
11
+ export { PRESET_LINE_AREAS_CURVE } from './PRESET_LINE_AREAS_CURVE'
12
+ // export { PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS } from './PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS'
13
+ export { PRESET_LINE_AREAS_HORIZONTAL } from './PRESET_LINE_AREAS_HORIZONTAL'
14
+ export { PRESET_LINE_AREAS_LOOSE_TICKS } from './PRESET_LINE_AREAS_LOOSE_TICKS'
15
+ export { PRESET_LINE_AREAS_ROTATE_AXIS_LABEL } from './PRESET_LINE_AREAS_ROTATE_AXIS_LABEL'
16
+ export { PRESET_LINE_AREAS_SEPARATE_SERIES } from './PRESET_LINE_AREAS_SEPARATE_SERIES'
17
+ export { PRESET_LINES_BASIC } from './PRESET_LINES_BASIC'
18
+ export { PRESET_LINES_CURVE } from './PRESET_LINES_CURVE'
19
+ // export { PRESET_LINES_HIGHLIGHT_GROUP_DOTS } from './PRESET_LINES_HIGHLIGHT_GROUP_DOTS'
20
+ export { PRESET_LINES_HORIZONTAL } from './PRESET_LINES_HORIZONTAL'
21
+ export { PRESET_LINES_LOOSE_TICKS } from './PRESET_LINES_LOOSE_TICKS'
22
+ export { PRESET_LINES_ROTATE_AXIS_LABEL } from './PRESET_LINES_ROTATE_AXIS_LABEL'
23
23
  export { PRESET_LINES_WITH_SOLID_DOTS } from './PRESET_LINES_WITH_SOLID_DOTS'
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
- export * from './series'
2
- export * from './grid'
3
- export * from './multiGrid'
4
- export * from './tree'
1
+ export * from './series'
2
+ export * from './grid'
3
+ export * from './multiGrid'
4
+ export * from './multiValue'
5
+ export * from './tree'
@@ -1,38 +1,38 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type {
3
- PresetMultiGridPluginParams,
4
- PresetNoneDataPluginParams
5
- } from '../types'
6
- // import { ALL_PLUGIN_PARAMS_MULTI_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
7
-
8
- export const PRESET_MULTI_GRID_BASIC: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
9
- & Partial<PresetNoneDataPluginParams>> = {
10
- name: 'PRESET_MULTI_GRID_BASIC',
11
- description: '基本MultiGrid參數',
12
- chartParams: {
13
- padding: {
14
- top: 60,
15
- right: 60,
16
- bottom: 120,
17
- left: 60
18
- },
19
- highlightTarget: 'series'
20
- },
21
- allPluginParams: {
22
- // ...ALL_PLUGIN_PARAMS_MULTI_GRID,
23
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
24
- MultiGridLegend: {
25
- // position: 'bottom',
26
- // justify: 'center',
27
- placement: 'bottom',
28
- padding: 14,
29
- gridList: [
30
- {
31
- },
32
- {
33
- listRectHeight: 2,
34
- }
35
- ]
36
- }
37
- }
38
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type {
3
+ PresetMultiGridPluginParams,
4
+ PresetNoneDataPluginParams
5
+ } from '../types'
6
+ // import { ALL_PLUGIN_PARAMS_MULTI_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
7
+
8
+ export const PRESET_MULTI_GRID_BASIC: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
9
+ & Partial<PresetNoneDataPluginParams>> = {
10
+ name: 'PRESET_MULTI_GRID_BASIC',
11
+ description: '基本MultiGrid參數',
12
+ chartParams: {
13
+ padding: {
14
+ top: 60,
15
+ right: 60,
16
+ bottom: 120,
17
+ left: 60
18
+ },
19
+ highlightTarget: 'series'
20
+ },
21
+ allPluginParams: {
22
+ // ...ALL_PLUGIN_PARAMS_MULTI_GRID,
23
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
24
+ MultiGridLegend: {
25
+ // position: 'bottom',
26
+ // justify: 'center',
27
+ placement: 'bottom',
28
+ padding: 14,
29
+ gridList: [
30
+ {
31
+ },
32
+ {
33
+ listRectHeight: 2,
34
+ }
35
+ ]
36
+ }
37
+ }
38
+ }