@orbcharts/presets-basic 3.0.0-beta.1 → 3.0.0-beta.11

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 (104) hide show
  1. package/dist/orbcharts-presets-basic.es.js +1680 -256
  2. package/dist/orbcharts-presets-basic.umd.js +1 -1
  3. package/dist/src/index.d.ts +2 -0
  4. package/dist/src/multiValue/PRESET_MULTI_VALUE_BASIC.d.ts +4 -0
  5. package/dist/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.d.ts +4 -0
  6. package/dist/src/multiValue/PRESET_SCATTER_BASIC.d.ts +4 -0
  7. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.d.ts +4 -0
  8. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.d.ts +4 -0
  9. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
  10. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.d.ts +4 -0
  11. package/dist/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.d.ts +4 -0
  12. package/dist/src/multiValue/index.d.ts +8 -0
  13. package/dist/src/params.d.ts +3 -1
  14. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BASIC.d.ts +4 -0
  15. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.d.ts +4 -0
  16. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.d.ts +4 -0
  17. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.d.ts +4 -0
  18. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.d.ts +4 -0
  19. package/dist/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.d.ts +4 -0
  20. package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.d.ts +4 -0
  21. package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.d.ts +4 -0
  22. package/dist/src/relationship/index.d.ts +8 -0
  23. package/dist/src/series/PRESET_BUBBLES_BASIC.d.ts +4 -0
  24. package/dist/src/series/PRESET_BUBBLES_SUM_SERIES.d.ts +4 -0
  25. package/dist/src/series/PRESET_PIE_SEPARATE_SERIES.d.ts +4 -0
  26. package/dist/src/series/PRESET_PIE_SUM_SERIES.d.ts +4 -0
  27. package/dist/src/series/PRESET_ROSE_SEPARATE_SERIES.d.ts +4 -0
  28. package/dist/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.d.ts +4 -0
  29. package/dist/src/series/PRESET_ROSE_SUM_SERIES.d.ts +4 -0
  30. package/dist/src/series/index.d.ts +7 -0
  31. package/dist/src/tree/PRESET_TREE_MAP_BASIC.d.ts +4 -0
  32. package/dist/src/tree/index.d.ts +1 -1
  33. package/dist/src/types.d.ts +55 -14
  34. package/package.json +3 -3
  35. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +19 -3
  36. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +19 -3
  37. package/src/grid/PRESET_BARS_ROUND.ts +18 -2
  38. package/src/grid/PRESET_BARS_THIN.ts +18 -2
  39. package/src/grid/PRESET_GRID_BASIC.ts +18 -2
  40. package/src/grid/PRESET_GRID_HORIZONTAL.ts +19 -3
  41. package/src/grid/PRESET_GRID_PN_SCALE.ts +20 -4
  42. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +18 -2
  43. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +20 -4
  44. package/src/grid/PRESET_LINES_BASIC.ts +18 -2
  45. package/src/grid/PRESET_LINES_CURVE.ts +18 -2
  46. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +18 -2
  47. package/src/grid/PRESET_LINES_HORIZONTAL.ts +19 -3
  48. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +18 -2
  49. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +18 -2
  50. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +19 -3
  51. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +20 -4
  52. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +20 -4
  53. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +20 -4
  54. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +19 -3
  55. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +20 -4
  56. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +20 -4
  57. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +20 -4
  58. package/src/index.ts +2 -0
  59. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +18 -2
  60. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +22 -6
  61. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +21 -5
  62. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +20 -4
  63. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +20 -4
  64. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +20 -4
  65. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +39 -0
  66. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +42 -0
  67. package/src/multiValue/PRESET_SCATTER_BASIC.ts +39 -0
  68. package/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.ts +39 -0
  69. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +42 -0
  70. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +42 -0
  71. package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +42 -0
  72. package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +42 -0
  73. package/src/multiValue/index.ts +8 -0
  74. package/src/params.ts +25 -5
  75. package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +39 -0
  76. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +39 -0
  77. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +44 -0
  78. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +46 -0
  79. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +41 -0
  80. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +46 -0
  81. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +44 -0
  82. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +41 -0
  83. package/src/relationship/index.ts +8 -0
  84. package/src/series/PRESET_BUBBLES_BASIC.ts +34 -0
  85. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -0
  86. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +17 -1
  87. package/src/series/PRESET_BUBBLES_SUM_SERIES.ts +36 -0
  88. package/src/series/PRESET_PIE_BASIC.ts +19 -1
  89. package/src/series/PRESET_PIE_DONUT.ts +18 -0
  90. package/src/series/PRESET_PIE_HALF_DONUT.ts +18 -1
  91. package/src/series/PRESET_PIE_SEPARATE_SERIES.ts +36 -0
  92. package/src/series/PRESET_PIE_SUM_SERIES.ts +36 -0
  93. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +19 -1
  94. package/src/series/PRESET_ROSE_BASIC.ts +18 -0
  95. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +18 -0
  96. package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +36 -0
  97. package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +37 -0
  98. package/src/series/PRESET_ROSE_SUM_SERIES.ts +36 -0
  99. package/src/series/PRESET_SERIES_BASIC.ts +18 -0
  100. package/src/series/index.ts +7 -0
  101. package/src/tree/{PRESET_TREE_BASIC.ts → PRESET_TREE_MAP_BASIC.ts} +20 -4
  102. package/src/tree/index.ts +1 -1
  103. package/src/types.ts +103 -21
  104. package/dist/src/tree/PRESET_TREE_BASIC.d.ts +0 -4
@@ -9,20 +9,36 @@ export const PRESET_LINE_AREAS_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<
9
9
  name: 'PRESET_LINE_AREAS_ROTATE_AXIS_LABEL',
10
10
  description: '傾斜標籤',
11
11
  chartParams: {
12
+ colors: {
13
+ light: {
14
+ label: [
15
+ "#4BABFF",
16
+ "#FFA0A0",
17
+ "#7DD3C4",
18
+ "#F9B052",
19
+ "#8454D4",
20
+ "#42C724",
21
+ "#FF4B4B",
22
+ "#904026",
23
+ "#4B25B3",
24
+ "#C50669"
25
+ ],
26
+ }
27
+ },
12
28
  padding: {
13
29
  top: 60,
14
30
  right: 60,
15
- bottom: 160,
16
- left: 60
31
+ bottom: 140,
32
+ left: 80
17
33
  },
18
34
  highlightTarget: 'series'
19
35
  },
20
36
  dataFormatter: {
21
- grid: {
37
+ // grid: {
22
38
  groupAxis: {
23
39
  scalePadding: 0
24
40
  }
25
- }
41
+ // }
26
42
  },
27
43
  allPluginParams: {
28
44
  // ...ALL_PLUGIN_PARAMS_NONE_DATA,
@@ -9,22 +9,38 @@ export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<Pr
9
9
  name: 'PRESET_LINE_AREAS_SEPARATE_SERIES',
10
10
  description: 'LineAreas 分開顯示Series',
11
11
  chartParams: {
12
+ colors: {
13
+ light: {
14
+ label: [
15
+ "#4BABFF",
16
+ "#FFA0A0",
17
+ "#7DD3C4",
18
+ "#F9B052",
19
+ "#8454D4",
20
+ "#42C724",
21
+ "#FF4B4B",
22
+ "#904026",
23
+ "#4B25B3",
24
+ "#C50669"
25
+ ],
26
+ }
27
+ },
12
28
  padding: {
13
29
  top: 60,
14
30
  right: 60,
15
- bottom: 160,
16
- left: 60
31
+ bottom: 140,
32
+ left: 80
17
33
  },
18
34
  highlightTarget: 'series'
19
35
  },
20
36
  dataFormatter: {
21
- grid: {
37
+ // grid: {
22
38
  // seriesSlotIndexes: [0, 1],
23
39
  separateSeries: true,
24
40
  groupAxis: {
25
41
  scalePadding: 0
26
42
  }
27
- },
43
+ // },
28
44
  },
29
45
  allPluginParams: {
30
46
  // ...ALL_PLUGIN_PARAMS_NONE_DATA,
package/src/index.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './series'
2
2
  export * from './grid'
3
3
  export * from './multiGrid'
4
+ export * from './multiValue'
5
+ export * from './relationship'
4
6
  export * from './tree'
@@ -10,11 +10,27 @@ export const PRESET_MULTI_GRID_BASIC: PresetPartial<'multiGrid', Partial<PresetM
10
10
  name: 'PRESET_MULTI_GRID_BASIC',
11
11
  description: '基本MultiGrid參數',
12
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
+ },
13
29
  padding: {
14
30
  top: 60,
15
31
  right: 60,
16
- bottom: 120,
17
- left: 60
32
+ bottom: 100,
33
+ left: 80
18
34
  },
19
35
  highlightTarget: 'series'
20
36
  },
@@ -10,11 +10,27 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
10
10
  name: 'PRESET_MULTI_GRID_DIVERGING',
11
11
  description: '雙向折線圖',
12
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
+ },
13
29
  padding: {
14
30
  top: 60,
15
31
  right: 60,
16
- bottom: 120,
17
- left: 60
32
+ bottom: 100,
33
+ left: 80
18
34
  },
19
35
  },
20
36
  dataFormatter: {
@@ -40,7 +56,7 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
40
56
  ],
41
57
  // 設定排版方式
42
58
  container: {
43
- gap: 200,
59
+ gap: 160,
44
60
  rowAmount: 1,
45
61
  columnAmount: 2
46
62
  },
@@ -49,19 +65,19 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
49
65
  allPluginParams: {
50
66
  // ...ALL_PLUGIN_PARAMS_NONE_DATA,
51
67
  MultiGroupAxis: {
52
- tickPadding: 60, // 加長間距
68
+ // tickPadding: 60, // 加長間距
53
69
  gridIndexes: [0] // 只顯示一個
54
70
  },
55
71
  MultiValueAxis: {
56
72
  gridIndexes: [0, 1]
57
73
  },
58
- MultiValueStackAxis: {
74
+ MultiStackedValueAxis: {
59
75
  gridIndexes: [0, 1]
60
76
  },
61
77
  MultiBars: {
62
78
  gridIndexes: [0, 1]
63
79
  },
64
- MultiBarStack: {
80
+ MultiStackedBar: {
65
81
  gridIndexes: [0, 1]
66
82
  },
67
83
  MultiBarsTriangle: {
@@ -12,11 +12,27 @@ export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<P
12
12
  name: 'PRESET_MULTI_GRID_ROUND_STYLE',
13
13
  description: 'MultiGrid圓弧風格',
14
14
  chartParams: {
15
+ colors: {
16
+ light: {
17
+ label: [
18
+ "#4BABFF",
19
+ "#94D6CB",
20
+ "#F9B052",
21
+ "#8454D4",
22
+ "#D58C75",
23
+ "#42C724",
24
+ "#FF8B8B",
25
+ "#904026",
26
+ "#C50669",
27
+ "#4B25B3"
28
+ ],
29
+ }
30
+ },
15
31
  padding: {
16
32
  top: 60,
17
33
  right: 60,
18
- bottom: 120,
19
- left: 60
34
+ bottom: 100,
35
+ left: 80
20
36
  },
21
37
  highlightTarget: 'series'
22
38
  },
@@ -28,7 +44,7 @@ export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<P
28
44
  barGroupPadding: 10,
29
45
  barRadius: true,
30
46
  },
31
- MultiBarStack: {},
47
+ MultiStackedBar: {},
32
48
  MultiDots: {},
33
49
  MultiGridLegend: {
34
50
  // position: 'bottom',
@@ -51,8 +67,8 @@ export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<P
51
67
  lineWidth: 3
52
68
  },
53
69
  MultiValueAxis: {},
54
- MultiValueStackAxis: {},
70
+ MultiStackedValueAxis: {},
55
71
  OverlappingValueAxes: {},
56
- OverlappingValueStackAxes: {},
72
+ OverlappingStackedValueAxes: {},
57
73
  }
58
74
  }
@@ -10,11 +10,27 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
10
10
  name: 'PRESET_MULTI_GRID_SEPARATE_GRID',
11
11
  description: '2組Grid圖表',
12
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
+ },
13
29
  padding: {
14
30
  top: 60,
15
31
  right: 60,
16
- bottom: 160,
17
- left: 60
32
+ bottom: 140,
33
+ left: 80
18
34
  },
19
35
  },
20
36
  dataFormatter: {
@@ -29,13 +45,13 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
29
45
  MultiValueAxis: {
30
46
  gridIndexes: 'all'
31
47
  },
32
- MultiValueStackAxis: {
48
+ MultiStackedValueAxis: {
33
49
  gridIndexes: 'all'
34
50
  },
35
51
  MultiBars: {
36
52
  gridIndexes: 'all'
37
53
  },
38
- MultiBarStack: {
54
+ MultiStackedBar: {
39
55
  gridIndexes: 'all'
40
56
  },
41
57
  MultiBarsTriangle: {
@@ -10,11 +10,27 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
10
10
  name: 'PRESET_MULTI_LINES_SEPARATE_GRID',
11
11
  description: '多組分開折線圖表',
12
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
+ },
13
29
  padding: {
14
30
  top: 60,
15
31
  right: 60,
16
- bottom: 160,
17
- left: 60
32
+ bottom: 140,
33
+ left: 80
18
34
  },
19
35
  },
20
36
  dataFormatter: {
@@ -29,13 +45,13 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
29
45
  MultiValueAxis: {
30
46
  gridIndexes: 'all'
31
47
  },
32
- MultiValueStackAxis: {
48
+ MultiStackedValueAxis: {
33
49
  gridIndexes: 'all'
34
50
  },
35
51
  MultiBars: {
36
52
  gridIndexes: 'all'
37
53
  },
38
- MultiBarStack: {
54
+ MultiStackedBar: {
39
55
  gridIndexes: 'all'
40
56
  },
41
57
  MultiBarsTriangle: {
@@ -10,11 +10,27 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
10
10
  name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
11
11
  description: '2組區域圖表',
12
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
+ },
13
29
  padding: {
14
30
  top: 60,
15
31
  right: 60,
16
- bottom: 160,
17
- left: 60
32
+ bottom: 140,
33
+ left: 80
18
34
  },
19
35
  },
20
36
  dataFormatter: {
@@ -47,13 +63,13 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
47
63
  MultiValueAxis: {
48
64
  gridIndexes: 'all'
49
65
  },
50
- MultiValueStackAxis: {
66
+ MultiStackedValueAxis: {
51
67
  gridIndexes: 'all'
52
68
  },
53
69
  MultiBars: {
54
70
  gridIndexes: 'all'
55
71
  },
56
- MultiBarStack: {
72
+ MultiStackedBar: {
57
73
  gridIndexes: 'all'
58
74
  },
59
75
  MultiBarsTriangle: {
@@ -0,0 +1,39 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_MULTI_VALUE_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_MULTI_VALUE_BASIC',
8
+ description: '基本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: 60,
28
+ right: 60,
29
+ bottom: 100,
30
+ left: 60
31
+ },
32
+ },
33
+ allPluginParams: {
34
+ MultiValueLegend: {
35
+ placement: 'bottom',
36
+ padding: 14,
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,42 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_MULTI_VALUE_SEPARATE_CATEGORY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_MULTI_VALUE_SEPARATE_CATEGORY',
8
+ description: 'MultiValue 分開顯示category',
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: 60,
28
+ right: 60,
29
+ bottom: 100,
30
+ left: 60
31
+ },
32
+ },
33
+ dataFormatter: {
34
+ separateCategory: true
35
+ },
36
+ allPluginParams: {
37
+ MultiValueLegend: {
38
+ placement: 'bottom',
39
+ padding: 14,
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,39 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BASIC',
8
+ description: '基本散布圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#16B59B",
14
+ "#0088FF",
15
+ "#FF3232",
16
+ "#8E6BC9",
17
+ "#904026",
18
+ "#D117EA",
19
+ "#F38428",
20
+ "#6BDC51",
21
+ "#C50669",
22
+ "#4B25B3"
23
+ ],
24
+ }
25
+ },
26
+ padding: {
27
+ top: 60,
28
+ right: 60,
29
+ bottom: 100,
30
+ left: 60
31
+ },
32
+ },
33
+ allPluginParams: {
34
+ MultiValueLegend: {
35
+ placement: 'bottom',
36
+ padding: 14,
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,39 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BUBBLES_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BUBBLES_BASIC',
8
+ description: '基本的散布泡泡圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#6CBAFF",
14
+ "#FF6C6C",
15
+ "#F9B052",
16
+ "#7DD3C4",
17
+ "#AA93D2",
18
+ "#0088FF",
19
+ "#FFBABA",
20
+ "#86DC72",
21
+ "#EF76FF",
22
+ "#C4C4C4"
23
+ ],
24
+ }
25
+ },
26
+ padding: {
27
+ top: 60,
28
+ right: 60,
29
+ bottom: 100,
30
+ left: 60
31
+ },
32
+ },
33
+ allPluginParams: {
34
+ MultiValueLegend: {
35
+ placement: 'bottom',
36
+ padding: 14,
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,42 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BUBBLES_LINEAR_OPACITY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BUBBLES_LINEAR_OPACITY',
8
+ description: '漸變透明度的散布泡泡圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#6CBAFF",
14
+ "#FF6C6C",
15
+ "#F9B052",
16
+ "#7DD3C4",
17
+ "#AA93D2",
18
+ "#0088FF",
19
+ "#FFBABA",
20
+ "#86DC72",
21
+ "#EF76FF",
22
+ "#C4C4C4"
23
+ ],
24
+ }
25
+ },
26
+ padding: {
27
+ top: 60,
28
+ right: 60,
29
+ bottom: 100,
30
+ left: 60
31
+ },
32
+ },
33
+ allPluginParams: {
34
+ MultiValueLegend: {
35
+ placement: 'bottom',
36
+ padding: 14,
37
+ },
38
+ ScatterBubbles: {
39
+ valueLinearOpacity: [0.6, 0.95]
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS',
8
+ description: '以半徑尺寸為比例的散布泡泡圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#6CBAFF",
14
+ "#FF6C6C",
15
+ "#F9B052",
16
+ "#7DD3C4",
17
+ "#AA93D2",
18
+ "#0088FF",
19
+ "#FFBABA",
20
+ "#86DC72",
21
+ "#EF76FF",
22
+ "#C4C4C4"
23
+ ],
24
+ }
25
+ },
26
+ padding: {
27
+ top: 60,
28
+ right: 60,
29
+ bottom: 100,
30
+ left: 60
31
+ },
32
+ },
33
+ allPluginParams: {
34
+ MultiValueLegend: {
35
+ placement: 'bottom',
36
+ padding: 14,
37
+ },
38
+ ScatterBubbles: {
39
+ arcScaleType: 'radius'
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY',
8
+ description: '分開顯示category的散布泡泡圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#6CBAFF",
14
+ "#FF6C6C",
15
+ "#F9B052",
16
+ "#7DD3C4",
17
+ "#AA93D2",
18
+ "#0088FF",
19
+ "#FFBABA",
20
+ "#86DC72",
21
+ "#EF76FF",
22
+ "#C4C4C4"
23
+ ],
24
+ }
25
+ },
26
+ padding: {
27
+ top: 60,
28
+ right: 60,
29
+ bottom: 100,
30
+ left: 60
31
+ },
32
+ },
33
+ dataFormatter: {
34
+ separateCategory: true
35
+ },
36
+ allPluginParams: {
37
+ MultiValueLegend: {
38
+ placement: 'bottom',
39
+ padding: 14,
40
+ }
41
+ }
42
+ }