@orbcharts/presets-basic 3.0.1 → 3.0.3

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/dist/orbcharts-presets-basic.es.js +1058 -450
  2. package/dist/orbcharts-presets-basic.umd.js +1 -1
  3. package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_ALL_ITEMS.d.ts +4 -0
  4. package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_BASIC.d.ts +4 -0
  5. package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_LINEAR_OPACITY.d.ts +4 -0
  6. package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
  7. package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_SEPARATE_CATEGORY.d.ts +4 -0
  8. package/dist/src/multiValue/PRESET_ORDINAL_BUBBLES_SIMPLE.d.ts +4 -0
  9. package/dist/src/multiValue/index.d.ts +6 -0
  10. package/dist/src/series/PRESET_BUBBLES_SEPARATE_ALL.d.ts +4 -0
  11. package/dist/src/series/PRESET_BUBBLES_SEPARATE_LABEL.d.ts +4 -0
  12. package/dist/src/series/PRESET_PIE_SEPARATE_LABEL.d.ts +4 -0
  13. package/dist/src/series/PRESET_ROSE_SEPARATE_ALL.d.ts +4 -0
  14. package/dist/src/series/PRESET_ROSE_SEPARATE_LABEL.d.ts +4 -0
  15. package/dist/src/series/index.d.ts +5 -0
  16. package/dist/src/types.d.ts +15 -3
  17. package/package.json +3 -3
  18. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +6 -8
  19. package/src/grid/PRESET_BARS_ROUND.ts +0 -2
  20. package/src/grid/PRESET_BARS_THIN.ts +0 -2
  21. package/src/grid/PRESET_GRID_BASIC.ts +0 -5
  22. package/src/grid/PRESET_GRID_HORIZONTAL.ts +6 -19
  23. package/src/grid/PRESET_GRID_PN_SCALE.ts +4 -11
  24. package/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.ts +0 -4
  25. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +1 -6
  26. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +6 -10
  27. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +1 -1
  28. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +2 -2
  29. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +5 -11
  30. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +2 -2
  31. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +2 -2
  32. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +1 -1
  33. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +5 -1
  34. package/src/grid/PRESET_LINE_AREAS_SIMPLE.ts +2 -2
  35. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +1 -1
  36. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.ts +1 -1
  37. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.ts +4 -0
  38. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +5 -1
  39. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.ts +2 -1
  40. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +5 -1
  41. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.ts +2 -1
  42. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +5 -5
  43. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.ts +4 -3
  44. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +5 -1
  45. package/src/multiValue/PRESET_ORDINAL_BUBBLES_ALL_ITEMS.ts +57 -0
  46. package/src/multiValue/PRESET_ORDINAL_BUBBLES_BASIC.ts +56 -0
  47. package/src/multiValue/PRESET_ORDINAL_BUBBLES_LINEAR_OPACITY.ts +59 -0
  48. package/src/multiValue/PRESET_ORDINAL_BUBBLES_SCALING_BY_RADIUS.ts +59 -0
  49. package/src/multiValue/PRESET_ORDINAL_BUBBLES_SEPARATE_CATEGORY.ts +66 -0
  50. package/src/multiValue/PRESET_ORDINAL_BUBBLES_SIMPLE.ts +59 -0
  51. package/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.ts +1 -1
  52. package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +5 -1
  53. package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +5 -1
  54. package/src/multiValue/index.ts +6 -0
  55. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +12 -12
  56. package/src/series/PRESET_BUBBLES_SEPARATE_ALL.ts +69 -0
  57. package/src/series/PRESET_BUBBLES_SEPARATE_LABEL.ts +66 -0
  58. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +13 -5
  59. package/src/series/PRESET_PIE_SEPARATE_LABEL.ts +52 -0
  60. package/src/series/PRESET_ROSE_SEPARATE_ALL.ts +55 -0
  61. package/src/series/PRESET_ROSE_SEPARATE_LABEL.ts +58 -0
  62. package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +0 -2
  63. package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +0 -2
  64. package/src/series/index.ts +5 -0
  65. package/src/tree/PRESET_TREE_MAP_BASIC.ts +0 -4
  66. package/src/types.ts +25 -1
  67. package/dist/src/params.d.ts +0 -9
  68. package/src/params.ts +0 -84
@@ -2,7 +2,6 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_BARS_ROUND: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
@@ -48,7 +47,6 @@ export const PRESET_BARS_ROUND: PresetPartial<'grid', Partial<PresetGridPluginPa
48
47
  },
49
48
  },
50
49
  pluginParams: {
51
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
52
50
  Bars: {
53
51
  barWidth: 0,
54
52
  barPadding: 1,
@@ -2,7 +2,6 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
@@ -48,7 +47,6 @@ export const PRESET_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginPar
48
47
  },
49
48
  },
50
49
  pluginParams: {
51
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
52
50
  Bars: {
53
51
  barWidth: 20,
54
52
  barPadding: 1,
@@ -1,6 +1,5 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_GRID_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
@@ -46,11 +45,7 @@ export const PRESET_GRID_BASIC: PresetPartial<'grid', Partial<PresetGridPluginPa
46
45
  },
47
46
  },
48
47
  pluginParams: {
49
- // ...ALL_PLUGIN_PARAMS_GRID,
50
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
51
48
  GridLegend: {
52
- // position: 'bottom',
53
- // justify: 'center',
54
49
  placement: 'bottom',
55
50
  padding: 14,
56
51
  }
@@ -1,6 +1,5 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
@@ -47,27 +46,15 @@ export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPlu
47
46
  },
48
47
  },
49
48
  dataFormatter: {
50
- // grid: {
51
- valueAxis: {
52
- position: 'bottom'
53
- // position: 'top'
54
- // position: 'left'
55
- // position: 'right'
56
- },
57
- groupAxis: {
58
- position: 'left'
59
- // position: 'right'
60
- // position: 'bottom'
61
- // position: 'top'
62
- },
63
- // }
49
+ valueAxis: {
50
+ position: 'bottom'
51
+ },
52
+ groupAxis: {
53
+ position: 'left'
54
+ },
64
55
  },
65
56
  pluginParams: {
66
- // ...ALL_PLUGIN_PARAMS_GRID,
67
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
68
57
  GridLegend: {
69
- // position: 'bottom',
70
- // justify: 'center',
71
58
  placement: 'bottom',
72
59
  padding: 14,
73
60
  }
@@ -1,6 +1,5 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
@@ -46,19 +45,13 @@ export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', Partial<PresetGridPlugi
46
45
  },
47
46
  },
48
47
  dataFormatter: {
49
- // grid: {
50
- valueAxis: {
51
- scaleDomain: ['auto', 'auto'],
52
- scaleRange: [0.05, 0.95],
53
- },
54
- // }
48
+ valueAxis: {
49
+ scaleDomain: ['auto', 'auto'],
50
+ scaleRange: [0.05, 0.95],
51
+ },
55
52
  },
56
53
  pluginParams: {
57
- // ...ALL_PLUGIN_PARAMS_GRID,
58
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
59
54
  GridLegend: {
60
- // position: 'bottom',
61
- // justify: 'center',
62
55
  placement: 'bottom',
63
56
  padding: 14,
64
57
  }
@@ -51,11 +51,7 @@ export const PRESET_GRID_PN_SCALE_SIMPLE: PresetPartial<'grid', Partial<PresetGr
51
51
  },
52
52
  },
53
53
  pluginParams: {
54
- // ...ALL_PLUGIN_PARAMS_GRID,
55
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
56
54
  GridLegend: {
57
- // position: 'bottom',
58
- // justify: 'center',
59
55
  placement: 'bottom',
60
56
  padding: 7,
61
57
  }
@@ -1,6 +1,5 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
@@ -42,13 +41,11 @@ export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<Preset
42
41
  padding: {
43
42
  top: 40,
44
43
  right: 40,
45
- bottom: 140,
44
+ bottom: 120,
46
45
  left: 80
47
46
  },
48
47
  },
49
48
  pluginParams: {
50
- // ...ALL_PLUGIN_PARAMS_GRID,
51
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
52
49
  GroupAux: {
53
50
  labelRotate: -30
54
51
  },
@@ -57,8 +54,6 @@ export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<Preset
57
54
  tickTextRotate: -30
58
55
  },
59
56
  GridLegend: {
60
- // position: 'bottom',
61
- // justify: 'center',
62
57
  placement: 'bottom',
63
58
  padding: 14,
64
59
  }
@@ -1,6 +1,5 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
@@ -41,19 +40,18 @@ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGr
41
40
  padding: {
42
41
  top: 40,
43
42
  right: 40,
44
- bottom: 140,
43
+ bottom: 120,
45
44
  left: 80
46
45
  },
47
46
  },
48
47
  dataFormatter: {
49
- // grid: {
50
- // seriesSlotIndexes: [0, 1],
51
- separateSeries: true,
52
- // },
48
+ separateSeries: true,
49
+ container: {
50
+ columnGap: 100,
51
+ rowGap: 80
52
+ }
53
53
  },
54
54
  pluginParams: {
55
- // ...ALL_PLUGIN_PARAMS_GRID,
56
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
57
55
  GroupAux: {
58
56
  labelRotate: -30
59
57
  },
@@ -62,8 +60,6 @@ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGr
62
60
  tickTextRotate: -30
63
61
  },
64
62
  GridLegend: {
65
- // position: 'bottom',
66
- // justify: 'center',
67
63
  placement: 'bottom',
68
64
  padding: 14,
69
65
  }
@@ -42,7 +42,7 @@ export const PRESET_LINES_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<Prese
42
42
  padding: {
43
43
  top: 40,
44
44
  right: 40,
45
- bottom: 140,
45
+ bottom: 120,
46
46
  left: 80
47
47
  },
48
48
  highlightTarget: 'series'
@@ -41,9 +41,9 @@ export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', Partial<PresetGridPl
41
41
  },
42
42
  padding: {
43
43
  top: 40,
44
- right: 80, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
44
+ right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
45
45
  bottom: 100,
46
- left: 80
46
+ left: 60
47
47
  },
48
48
  highlightTarget: 'series'
49
49
  },
@@ -2,7 +2,6 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
@@ -42,21 +41,18 @@ export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPl
42
41
  },
43
42
  padding: {
44
43
  top: 40,
45
- right: 80, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
44
+ right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
46
45
  bottom: 100,
47
- left: 80
46
+ left: 60
48
47
  },
49
48
  highlightTarget: 'series'
50
49
  },
51
50
  dataFormatter: {
52
- // grid: {
53
- groupAxis: {
54
- scalePadding: 0
55
- }
56
- // }
51
+ groupAxis: {
52
+ scalePadding: 0
53
+ }
57
54
  },
58
55
  pluginParams: {
59
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
60
56
  Lines: {
61
57
  lineCurve: 'curveMonotoneX',
62
58
  lineWidth: 3
@@ -69,8 +65,6 @@ export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPl
69
65
  ValueAxis: {},
70
66
  GroupAux: {},
71
67
  GridLegend: {
72
- // position: 'bottom',
73
- // justify: 'center',
74
68
  placement: 'bottom',
75
69
  padding: 14,
76
70
  listRectHeight: 2
@@ -41,9 +41,9 @@ export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', Parti
41
41
  },
42
42
  padding: {
43
43
  top: 40,
44
- right: 80, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
44
+ right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
45
45
  bottom: 100,
46
- left: 80
46
+ left: 60
47
47
  },
48
48
  highlightTarget: 'group'
49
49
  },
@@ -41,9 +41,9 @@ export const PRESET_LINE_AREAS_LOOSE_TICKS: PresetPartial<'grid', Partial<Preset
41
41
  },
42
42
  padding: {
43
43
  top: 40,
44
- right: 80, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
44
+ right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
45
45
  bottom: 100,
46
- left: 80
46
+ left: 60
47
47
  },
48
48
  highlightTarget: 'series'
49
49
  },
@@ -42,7 +42,7 @@ export const PRESET_LINE_AREAS_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<
42
42
  padding: {
43
43
  top: 40,
44
44
  right: 40,
45
- bottom: 140,
45
+ bottom: 120,
46
46
  left: 80
47
47
  },
48
48
  highlightTarget: 'series'
@@ -42,7 +42,7 @@ export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<Pr
42
42
  padding: {
43
43
  top: 40,
44
44
  right: 40,
45
- bottom: 140,
45
+ bottom: 120,
46
46
  left: 80
47
47
  },
48
48
  highlightTarget: 'series'
@@ -51,6 +51,10 @@ export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<Pr
51
51
  separateSeries: true,
52
52
  groupAxis: {
53
53
  scalePadding: 0
54
+ },
55
+ container: {
56
+ columnGap: 100,
57
+ rowGap: 80
54
58
  }
55
59
  },
56
60
  pluginParams: {
@@ -41,9 +41,9 @@ export const PRESET_LINE_AREAS_SIMPLE: PresetPartial<'grid', Partial<PresetGridP
41
41
  },
42
42
  padding: {
43
43
  top: 40,
44
- right: 80, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
44
+ right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
45
45
  bottom: 80,
46
- left: 80 // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
46
+ left: 60 // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
47
47
  },
48
48
  highlightTarget: 'series'
49
49
  },
@@ -70,7 +70,7 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
70
70
  ],
71
71
  // 設定排版方式
72
72
  container: {
73
- gap: 160,
73
+ columnGap: 160,
74
74
  rowAmount: 1,
75
75
  columnAmount: 2
76
76
  },
@@ -72,7 +72,7 @@ export const PRESET_MULTI_GRID_DIVERGING_SIMPLE: PresetPartial<'multiGrid', Part
72
72
  ],
73
73
  // 設定排版方式
74
74
  container: {
75
- gap: 140,
75
+ columnGap: 140,
76
76
  rowAmount: 1,
77
77
  columnAmount: 2
78
78
  },
@@ -59,6 +59,10 @@ export const PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE: PresetPartial<'multiGrid', Pa
59
59
  },
60
60
  },
61
61
  ],
62
+ container: {
63
+ columnGap: 40,
64
+ rowGap: 60
65
+ }
62
66
  },
63
67
  pluginParams: {
64
68
  MultiBars: {
@@ -43,12 +43,16 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
43
43
  padding: {
44
44
  top: 40,
45
45
  right: 40,
46
- bottom: 140,
46
+ bottom: 120,
47
47
  left: 80
48
48
  },
49
49
  },
50
50
  dataFormatter: {
51
51
  separateGrid: true,
52
+ container: {
53
+ columnGap: 100,
54
+ rowGap: 80
55
+ }
52
56
  },
53
57
  pluginParams: {
54
58
  MultiGroupAxis: {
@@ -58,7 +58,8 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE: PresetPartial<'multiGrid',
58
58
  ],
59
59
  separateGrid: true,
60
60
  container: {
61
- gap: 40
61
+ columnGap: 40,
62
+ rowGap: 60
62
63
  },
63
64
  },
64
65
  pluginParams: {
@@ -43,12 +43,16 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
43
43
  padding: {
44
44
  top: 40,
45
45
  right: 40,
46
- bottom: 140,
46
+ bottom: 120,
47
47
  left: 80
48
48
  },
49
49
  },
50
50
  dataFormatter: {
51
51
  separateGrid: true,
52
+ container: {
53
+ columnGap: 100,
54
+ rowGap: 80
55
+ }
52
56
  },
53
57
  pluginParams: {
54
58
  MultiGroupAxis: {
@@ -58,7 +58,8 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE: PresetPartial<'multiGrid',
58
58
  ],
59
59
  separateGrid: true,
60
60
  container: {
61
- gap: 40
61
+ columnGap: 40,
62
+ rowGap: 60
62
63
  }
63
64
  },
64
65
  pluginParams: {
@@ -43,7 +43,7 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
43
43
  padding: {
44
44
  top: 40,
45
45
  right: 40,
46
- bottom: 140,
46
+ bottom: 120,
47
47
  left: 80
48
48
  },
49
49
  },
@@ -63,10 +63,10 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
63
63
  }
64
64
  ],
65
65
  separateGrid: true,
66
- // container: {
67
- // rowAmount: 1,
68
- // columnAmount: 2,
69
- // }
66
+ container: {
67
+ columnGap: 100,
68
+ rowGap: 80
69
+ }
70
70
  },
71
71
  pluginParams: {
72
72
  MultiGroupAxis: {
@@ -42,9 +42,9 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE: PresetPartial<'multiG
42
42
  },
43
43
  padding: {
44
44
  top: 40,
45
- right: 80, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
45
+ right: 60, // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
46
46
  bottom: 80,
47
- left: 80 // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
47
+ left: 60 // lineAre 的左右刻度靠邊,要避免太窄造成 label 超出
48
48
  },
49
49
  },
50
50
  dataFormatter: {
@@ -61,7 +61,8 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE: PresetPartial<'multiG
61
61
  ],
62
62
  separateGrid: true,
63
63
  container: {
64
- gap: 160
64
+ columnGap: 60,
65
+ rowGap: 60
65
66
  }
66
67
  },
67
68
  pluginParams: {
@@ -45,7 +45,11 @@ export const PRESET_MULTI_VALUE_SEPARATE_CATEGORY: PresetPartial<'multiValue', P
45
45
  },
46
46
  },
47
47
  dataFormatter: {
48
- separateCategory: true
48
+ separateCategory: true,
49
+ container: {
50
+ columnGap: 100,
51
+ rowGap: 80
52
+ }
49
53
  },
50
54
  pluginParams: {
51
55
  XYAxes: {
@@ -0,0 +1,57 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_ORDINAL_BUBBLES_ALL_ITEMS: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_ORDINAL_BUBBLES_ALL_ITEMS',
7
+ description: 'Ordinal bubbles with all items',
8
+ descriptionZh: '顯示全部項目的序數泡泡圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#0088FF",
14
+ "#FF3232",
15
+ "#38BEA8",
16
+ "#6F3BD5",
17
+ "#314285",
18
+ "#42C724",
19
+ "#D52580",
20
+ "#F4721B",
21
+ "#D117EA",
22
+ "#7E7D7D"
23
+ ],
24
+ },
25
+ dark: {
26
+ label: [
27
+ "#4BABFF",
28
+ "#FF6C6C",
29
+ "#7DD3C4",
30
+ "#8E6BC9",
31
+ "#5366AC",
32
+ "#86DC72",
33
+ "#FF72BB",
34
+ "#F9B052",
35
+ "#EF76FF",
36
+ "#C4C4C4"
37
+ ]
38
+ }
39
+ },
40
+ padding: {
41
+ top: 60,
42
+ right: 40,
43
+ bottom: 60,
44
+ left: 160
45
+ },
46
+ },
47
+ pluginParams: {
48
+ OrdinalBubbles: {
49
+ rankingAmount: 'auto',
50
+ },
51
+ MultiValueLegend: {
52
+ placement: 'bottom',
53
+ padding: 14,
54
+ listRectRadius: 7 // 圓型圖例列點
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,56 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_ORDINAL_BUBBLES_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_ORDINAL_BUBBLES_BASIC',
7
+ description: 'Basic ordinal bubbles',
8
+ descriptionZh: '序數泡泡圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#0088FF",
14
+ "#FF3232",
15
+ "#38BEA8",
16
+ "#6F3BD5",
17
+ "#314285",
18
+ "#42C724",
19
+ "#D52580",
20
+ "#F4721B",
21
+ "#D117EA",
22
+ "#7E7D7D"
23
+ ],
24
+ },
25
+ dark: {
26
+ label: [
27
+ "#4BABFF",
28
+ "#FF6C6C",
29
+ "#7DD3C4",
30
+ "#8E6BC9",
31
+ "#5366AC",
32
+ "#86DC72",
33
+ "#FF72BB",
34
+ "#F9B052",
35
+ "#EF76FF",
36
+ "#C4C4C4"
37
+ ]
38
+ }
39
+ },
40
+ padding: {
41
+ top: 60,
42
+ right: 40,
43
+ bottom: 60,
44
+ left: 160
45
+ },
46
+ },
47
+ pluginParams: {
48
+ OrdinalBubbles: {
49
+ },
50
+ MultiValueLegend: {
51
+ placement: 'bottom',
52
+ padding: 14,
53
+ listRectRadius: 7 // 圓型圖例列點
54
+ }
55
+ }
56
+ }