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

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 (138) hide show
  1. package/dist/orbcharts-presets-basic.es.js +1944 -642
  2. package/dist/orbcharts-presets-basic.umd.js +1 -1
  3. package/dist/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.d.ts +4 -0
  4. package/dist/src/grid/PRESET_GRID_SIMPLE.d.ts +4 -0
  5. package/dist/src/grid/PRESET_LINES_SIMPLE.d.ts +4 -0
  6. package/dist/src/grid/PRESET_LINE_AREAS_SIMPLE.d.ts +4 -0
  7. package/dist/src/grid/index.d.ts +4 -0
  8. package/dist/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.d.ts +4 -0
  9. package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.d.ts +3 -1
  10. package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.d.ts +6 -0
  11. package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.d.ts +4 -0
  12. package/dist/src/multiGrid/PRESET_MULTI_GRID_SIMPLE.d.ts +4 -0
  13. package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.d.ts +4 -0
  14. package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.d.ts +4 -0
  15. package/dist/src/multiGrid/index.d.ts +6 -0
  16. package/dist/src/multiValue/PRESET_MULTI_VALUE_SIMPLE.d.ts +4 -0
  17. package/dist/src/multiValue/PRESET_RACING_BARS_ALL_ITEMS.d.ts +4 -0
  18. package/dist/src/multiValue/PRESET_RACING_BARS_BASIC.d.ts +4 -0
  19. package/dist/src/multiValue/PRESET_RACING_BARS_FAST.d.ts +4 -0
  20. package/dist/src/multiValue/PRESET_RACING_BARS_FASTER.d.ts +4 -0
  21. package/dist/src/multiValue/PRESET_RACING_BARS_OUTSIDE_LABELS.d.ts +4 -0
  22. package/dist/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.d.ts +4 -0
  23. package/dist/src/multiValue/PRESET_RACING_BARS_SIMPLE.d.ts +4 -0
  24. package/dist/src/multiValue/PRESET_RACING_BARS_STOP.d.ts +4 -0
  25. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.d.ts +4 -0
  26. package/dist/src/multiValue/PRESET_SCATTER_SIMPLE.d.ts +4 -0
  27. package/dist/src/multiValue/index.d.ts +12 -1
  28. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE.d.ts +4 -0
  29. package/dist/src/relationship/PRESET_FORCE_DIRECTED_SIMPLE.d.ts +4 -0
  30. package/dist/src/relationship/index.d.ts +2 -0
  31. package/dist/src/series/PRESET_BUBBLES_SIMPLE.d.ts +4 -0
  32. package/dist/src/series/PRESET_PIE_SIMPLE.d.ts +4 -0
  33. package/dist/src/series/PRESET_ROSE_SIMPLE.d.ts +4 -0
  34. package/dist/src/series/index.d.ts +3 -0
  35. package/dist/src/tree/PRESET_TREE_MAP_SIMPLE.d.ts +4 -0
  36. package/dist/src/tree/index.d.ts +1 -0
  37. package/dist/src/types.d.ts +23 -17
  38. package/package.json +3 -3
  39. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +11 -23
  40. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +5 -12
  41. package/src/grid/PRESET_BARS_ROUND.ts +5 -4
  42. package/src/grid/PRESET_BARS_THIN.ts +5 -4
  43. package/src/grid/PRESET_GRID_BASIC.ts +5 -4
  44. package/src/grid/PRESET_GRID_HORIZONTAL.ts +5 -4
  45. package/src/grid/PRESET_GRID_PN_SCALE.ts +5 -4
  46. package/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.ts +49 -0
  47. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +5 -4
  48. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +5 -4
  49. package/src/grid/PRESET_GRID_SIMPLE.ts +44 -0
  50. package/src/grid/PRESET_LINES_BASIC.ts +5 -8
  51. package/src/grid/PRESET_LINES_CURVE.ts +5 -8
  52. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +5 -8
  53. package/src/grid/PRESET_LINES_HORIZONTAL.ts +11 -22
  54. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +5 -8
  55. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +5 -8
  56. package/src/grid/PRESET_LINES_SIMPLE.ts +53 -0
  57. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +5 -8
  58. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +5 -4
  59. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +5 -4
  60. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +8 -13
  61. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +12 -17
  62. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +8 -13
  63. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +8 -13
  64. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +9 -15
  65. package/src/grid/PRESET_LINE_AREAS_SIMPLE.ts +57 -0
  66. package/src/grid/index.ts +4 -0
  67. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +5 -9
  68. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +6 -10
  69. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.ts +101 -0
  70. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +7 -10
  71. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.ts +81 -0
  72. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +6 -9
  73. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.ts +84 -0
  74. package/src/multiGrid/PRESET_MULTI_GRID_SIMPLE.ts +60 -0
  75. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +6 -7
  76. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.ts +110 -0
  77. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +6 -7
  78. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.ts +113 -0
  79. package/src/multiGrid/index.ts +6 -0
  80. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +6 -6
  81. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +14 -6
  82. package/src/multiValue/PRESET_MULTI_VALUE_SIMPLE.ts +39 -0
  83. package/src/multiValue/PRESET_RACING_BARS_ALL_ITEMS.ts +44 -0
  84. package/src/multiValue/PRESET_RACING_BARS_BASIC.ts +43 -0
  85. package/src/multiValue/PRESET_RACING_BARS_FAST.ts +43 -0
  86. package/src/multiValue/PRESET_RACING_BARS_FASTER.ts +43 -0
  87. package/src/multiValue/PRESET_RACING_BARS_OUTSIDE_LABELS.ts +47 -0
  88. package/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.ts +60 -0
  89. package/src/multiValue/PRESET_RACING_BARS_SIMPLE.ts +43 -0
  90. package/src/multiValue/PRESET_RACING_BARS_STOP.ts +42 -0
  91. package/src/multiValue/PRESET_SCATTER_BASIC.ts +7 -6
  92. package/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.ts +7 -6
  93. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +7 -6
  94. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +7 -6
  95. package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +7 -6
  96. package/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.ts +40 -0
  97. package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +15 -6
  98. package/src/multiValue/PRESET_SCATTER_SIMPLE.ts +40 -0
  99. package/src/multiValue/index.ts +13 -2
  100. package/src/params.ts +7 -4
  101. package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +3 -9
  102. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +3 -9
  103. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +3 -9
  104. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +3 -11
  105. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +3 -9
  106. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE.ts +34 -0
  107. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +3 -9
  108. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +3 -9
  109. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +3 -9
  110. package/src/relationship/PRESET_FORCE_DIRECTED_SIMPLE.ts +34 -0
  111. package/src/relationship/index.ts +3 -1
  112. package/src/series/PRESET_BUBBLES_BASIC.ts +3 -5
  113. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +3 -4
  114. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +3 -4
  115. package/src/series/PRESET_BUBBLES_SIMPLE.ts +39 -0
  116. package/src/series/PRESET_BUBBLES_SUM_SERIES.ts +3 -5
  117. package/src/series/PRESET_PIE_BASIC.ts +3 -4
  118. package/src/series/PRESET_PIE_DONUT.ts +3 -4
  119. package/src/series/PRESET_PIE_HALF_DONUT.ts +3 -4
  120. package/src/series/PRESET_PIE_SEPARATE_SERIES.ts +3 -5
  121. package/src/series/PRESET_PIE_SIMPLE.ts +43 -0
  122. package/src/series/PRESET_PIE_SUM_SERIES.ts +3 -5
  123. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +3 -4
  124. package/src/series/PRESET_ROSE_BASIC.ts +9 -5
  125. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +9 -4
  126. package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +9 -3
  127. package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +9 -3
  128. package/src/series/PRESET_ROSE_SIMPLE.ts +43 -0
  129. package/src/series/PRESET_ROSE_SUM_SERIES.ts +9 -5
  130. package/src/series/PRESET_SERIES_BASIC.ts +3 -5
  131. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +3 -5
  132. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +3 -5
  133. package/src/series/PRESET_SERIES_SUM_SERIES.ts +4 -5
  134. package/src/series/index.ts +3 -0
  135. package/src/tree/PRESET_TREE_MAP_BASIC.ts +3 -2
  136. package/src/tree/PRESET_TREE_MAP_SIMPLE.ts +44 -0
  137. package/src/tree/index.ts +2 -1
  138. package/src/types.ts +38 -19
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SCATTER_BUBBLES_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SCATTER_BUBBLES_BASIC',
8
- description: '基本的散布泡泡圖',
7
+ description: 'Basic Scatter Bubbles',
8
+ descriptionZh: '基本的散布泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -24,16 +24,17 @@ export const PRESET_SCATTER_BUBBLES_BASIC: PresetPartial<'multiValue', Partial<P
24
24
  }
25
25
  },
26
26
  padding: {
27
- top: 60,
28
- right: 60,
27
+ top: 40,
28
+ right: 40,
29
29
  bottom: 100,
30
- left: 60
30
+ left: 80
31
31
  },
32
32
  },
33
- allPluginParams: {
33
+ pluginParams: {
34
34
  MultiValueLegend: {
35
35
  placement: 'bottom',
36
36
  padding: 14,
37
+ listRectRadius: 7 // 圓型圖例列點
37
38
  }
38
39
  }
39
40
  }
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SCATTER_BUBBLES_LINEAR_OPACITY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SCATTER_BUBBLES_LINEAR_OPACITY',
8
- description: '漸變透明度的散布泡泡圖',
7
+ description: 'Scatter Bubbles with Linear Opacity',
8
+ descriptionZh: '漸變透明度的散布泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -24,16 +24,17 @@ export const PRESET_SCATTER_BUBBLES_LINEAR_OPACITY: PresetPartial<'multiValue',
24
24
  }
25
25
  },
26
26
  padding: {
27
- top: 60,
28
- right: 60,
27
+ top: 40,
28
+ right: 40,
29
29
  bottom: 100,
30
- left: 60
30
+ left: 80
31
31
  },
32
32
  },
33
- allPluginParams: {
33
+ pluginParams: {
34
34
  MultiValueLegend: {
35
35
  placement: 'bottom',
36
36
  padding: 14,
37
+ listRectRadius: 7 // 圓型圖例列點
37
38
  },
38
39
  ScatterBubbles: {
39
40
  valueLinearOpacity: [0.6, 0.95]
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS',
8
- description: '以半徑尺寸為比例的散布泡泡圖',
7
+ description: 'Scatter Bubbles with Radius Scaling',
8
+ descriptionZh: '以半徑尺寸為比例的散布泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -24,16 +24,17 @@ export const PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'multiValue
24
24
  }
25
25
  },
26
26
  padding: {
27
- top: 60,
28
- right: 60,
27
+ top: 40,
28
+ right: 40,
29
29
  bottom: 100,
30
- left: 60
30
+ left: 80
31
31
  },
32
32
  },
33
- allPluginParams: {
33
+ pluginParams: {
34
34
  MultiValueLegend: {
35
35
  placement: 'bottom',
36
36
  padding: 14,
37
+ listRectRadius: 7 // 圓型圖例列點
37
38
  },
38
39
  ScatterBubbles: {
39
40
  arcScaleType: 'radius'
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY',
8
- description: '分開顯示category的散布泡泡圖',
7
+ description: 'Scatter Bubbles with Separate Category',
8
+ descriptionZh: '分開顯示category的散布泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -24,19 +24,20 @@ export const PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY: PresetPartial<'multiValue
24
24
  }
25
25
  },
26
26
  padding: {
27
- top: 60,
28
- right: 60,
27
+ top: 40,
28
+ right: 40,
29
29
  bottom: 100,
30
- left: 60
30
+ left: 80
31
31
  },
32
32
  },
33
33
  dataFormatter: {
34
34
  separateCategory: true
35
35
  },
36
- allPluginParams: {
36
+ pluginParams: {
37
37
  MultiValueLegend: {
38
38
  placement: 'bottom',
39
39
  padding: 14,
40
+ listRectRadius: 7 // 圓型圖例列點
40
41
  }
41
42
  }
42
43
  }
@@ -0,0 +1,40 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_SCATTER_BUBBLES_SIMPLE: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_SCATTER_BUBBLES_SIMPLE',
7
+ description: 'Simple Scatter Bubbles',
8
+ descriptionZh: '簡單的散布泡泡圖',
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: 40,
28
+ right: 40,
29
+ bottom: 60,
30
+ left: 80
31
+ },
32
+ },
33
+ pluginParams: {
34
+ MultiValueLegend: {
35
+ placement: 'bottom',
36
+ padding: 7,
37
+ listRectRadius: 7 // 圓型圖例列點
38
+ }
39
+ }
40
+ }
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SCATTER_SEPARATE_CATEGORY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SCATTER_SEPARATE_CATEGORY',
8
- description: '分開顯示category的散布圖',
7
+ description: 'Scatter with Separate Category',
8
+ descriptionZh: '分開顯示category的散布圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -24,19 +24,28 @@ export const PRESET_SCATTER_SEPARATE_CATEGORY: PresetPartial<'multiValue', Parti
24
24
  }
25
25
  },
26
26
  padding: {
27
- top: 60,
28
- right: 60,
27
+ top: 40,
28
+ right: 40,
29
29
  bottom: 100,
30
- left: 60
30
+ left: 80
31
31
  },
32
32
  },
33
33
  dataFormatter: {
34
34
  separateCategory: true
35
35
  },
36
- allPluginParams: {
36
+ pluginParams: {
37
+ XYAxes: {
38
+ xAxis: {
39
+ ticks: 3,
40
+ },
41
+ yAxis: {
42
+ ticks: 3,
43
+ }
44
+ },
37
45
  MultiValueLegend: {
38
46
  placement: 'bottom',
39
47
  padding: 14,
48
+ listRectRadius: 7 // 圓型圖例列點
40
49
  }
41
50
  }
42
51
  }
@@ -0,0 +1,40 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_SCATTER_SIMPLE: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_SCATTER_SIMPLE',
7
+ description: 'Simple Scatter',
8
+ descriptionZh: '簡單散布圖',
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: 40,
28
+ right: 40,
29
+ bottom: 60,
30
+ left: 80
31
+ },
32
+ },
33
+ pluginParams: {
34
+ MultiValueLegend: {
35
+ placement: 'bottom',
36
+ padding: 7,
37
+ listRectRadius: 7 // 圓型圖例列點
38
+ }
39
+ }
40
+ }
@@ -1,8 +1,19 @@
1
1
  export { PRESET_MULTI_VALUE_BASIC } from './PRESET_MULTI_VALUE_BASIC'
2
2
  export { PRESET_MULTI_VALUE_SEPARATE_CATEGORY } from './PRESET_MULTI_VALUE_SEPARATE_CATEGORY'
3
+ export { PRESET_MULTI_VALUE_SIMPLE } from './PRESET_MULTI_VALUE_SIMPLE'
4
+ export { PRESET_RACING_BARS_ALL_ITEMS } from './PRESET_RACING_BARS_ALL_ITEMS'
5
+ export { PRESET_RACING_BARS_BASIC } from './PRESET_RACING_BARS_BASIC'
6
+ export { PRESET_RACING_BARS_FAST } from './PRESET_RACING_BARS_FAST'
7
+ export { PRESET_RACING_BARS_FASTER } from './PRESET_RACING_BARS_FASTER'
8
+ export { PRESET_RACING_BARS_OUTSIDE_LABELS } from './PRESET_RACING_BARS_OUTSIDE_LABELS'
9
+ export { PRESET_RACING_BARS_SEPARATE_CATEGORY } from './PRESET_RACING_BARS_SEPARATE_CATEGORY'
10
+ export { PRESET_RACING_BARS_SIMPLE } from './PRESET_RACING_BARS_SIMPLE'
11
+ export { PRESET_RACING_BARS_STOP } from './PRESET_RACING_BARS_STOP'
3
12
  export { PRESET_SCATTER_BASIC } from './PRESET_SCATTER_BASIC'
4
- export { PRESET_SCATTER_SEPARATE_CATEGORY } from './PRESET_SCATTER_SEPARATE_CATEGORY'
5
13
  export { PRESET_SCATTER_BUBBLES_BASIC } from './PRESET_SCATTER_BUBBLES_BASIC'
6
14
  export { PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS } from './PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS'
7
15
  export { PRESET_SCATTER_BUBBLES_LINEAR_OPACITY } from './PRESET_SCATTER_BUBBLES_LINEAR_OPACITY'
8
- export { PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY } from './PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY'
16
+ export { PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY } from './PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY'
17
+ export { PRESET_SCATTER_BUBBLES_SIMPLE } from './PRESET_SCATTER_BUBBLES_SIMPLE'
18
+ export { PRESET_SCATTER_SEPARATE_CATEGORY } from './PRESET_SCATTER_SEPARATE_CATEGORY'
19
+ export { PRESET_SCATTER_SIMPLE } from './PRESET_SCATTER_SIMPLE'
package/src/params.ts CHANGED
@@ -22,7 +22,7 @@ export const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams = {
22
22
  export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
23
23
  Bars: {},
24
24
  BarsPN: {},
25
- StackedBar: {},
25
+ StackedBars: {},
26
26
  BarsTriangle: {},
27
27
  Dots: {},
28
28
  GridLegend: {},
@@ -31,14 +31,14 @@ export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
31
31
  GroupAxis: {},
32
32
  LineAreas: {},
33
33
  Lines: {},
34
- GridZoom: {},
34
+ GroupZoom: {},
35
35
  ValueAxis: {},
36
36
  StackedValueAxis: {},
37
37
  }
38
38
 
39
39
  export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
40
40
  MultiBars: {},
41
- MultiStackedBar: {},
41
+ MultiStackedBars: {},
42
42
  MultiBarsTriangle: {},
43
43
  MultiDots: {},
44
44
  MultiGridLegend: {},
@@ -55,11 +55,14 @@ export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
55
55
  export const ALL_PLUGIN_PARAMS_MULTI_VALUE: PresetMultiValuePluginParams = {
56
56
  MultiValueLegend: {},
57
57
  MultiValueTooltip: {},
58
+ RacingBars: {},
59
+ RacingCounterTexts: {},
60
+ RacingValueAxis: {},
58
61
  Scatter: {},
59
62
  ScatterBubbles: {},
60
63
  XYAxes: {},
61
64
  XYAux: {},
62
- XYZoom: {}
65
+ XZoom: {}
63
66
  }
64
67
 
65
68
  export const ALL_PLUGIN_PARAMS_RELATIONSHIP: PresetRelationshipPluginParams = {
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_FORCE_DIRECTED_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_FORCE_DIRECTED_BASIC',
8
- description: '基本Force Directed參數',
7
+ description: 'Basic Force Directed Chart',
8
+ descriptionZh: '基本力導向圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -23,14 +23,8 @@ export const PRESET_FORCE_DIRECTED_BASIC: PresetPartial<'relationship', Partial<
23
23
  ],
24
24
  }
25
25
  },
26
- // padding: {
27
- // top: 40,
28
- // right: 40,
29
- // bottom: 60,
30
- // left: 40
31
- // },
32
26
  },
33
- allPluginParams: {
27
+ pluginParams: {
34
28
  ForceDirected: {},
35
29
  RelationshipLegend: {
36
30
  listRectRadius: 7 // 圓型圖例列點
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_FORCE_DIRECTED_BUBBLES_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_FORCE_DIRECTED_BUBBLES_BASIC',
8
- description: '基本Force Directed Bubbles參數',
7
+ description: 'Basic Force Directed Bubbles Chart',
8
+ descriptionZh: '基本力導向泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -23,14 +23,8 @@ export const PRESET_FORCE_DIRECTED_BUBBLES_BASIC: PresetPartial<'relationship',
23
23
  ],
24
24
  }
25
25
  }
26
- // padding: {
27
- // top: 40,
28
- // right: 40,
29
- // bottom: 60,
30
- // left: 40
31
- // },
32
26
  },
33
- allPluginParams: {
27
+ pluginParams: {
34
28
  ForceDirectedBubbles: {},
35
29
  RelationshipLegend: {
36
30
  listRectRadius: 7 // 圓型圖例列點
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH',
8
- description: 'Force Directed Bubbles固定箭頭寬度',
7
+ description: 'Force-directed bubble chart with fixed arrow width',
8
+ descriptionZh: '固定箭頭寬度的力導向泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -23,14 +23,8 @@ export const PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH: PresetPartial<'relat
23
23
  ],
24
24
  }
25
25
  }
26
- // padding: {
27
- // top: 40,
28
- // right: 40,
29
- // bottom: 60,
30
- // left: 40
31
- // },
32
26
  },
33
- allPluginParams: {
27
+ pluginParams: {
34
28
  ForceDirectedBubbles: {
35
29
  arrow: {
36
30
  strokeWidthMin: 1.5,
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW',
8
- description: 'Force Directed Bubbles沒有箭頭',
7
+ description: 'Force-directed bubble chart without arrows',
8
+ descriptionZh: '沒有箭頭的力導向泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -23,20 +23,12 @@ export const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW: PresetPartial<'relationsh
23
23
  ],
24
24
  }
25
25
  }
26
- // padding: {
27
- // top: 40,
28
- // right: 40,
29
- // bottom: 60,
30
- // left: 40
31
- // },
32
26
  },
33
- allPluginParams: {
27
+ pluginParams: {
34
28
  ForceDirectedBubbles: {
35
29
  arrow: {
36
30
  pointerWidth: 0,
37
31
  pointerHeight: 0,
38
- // strokeWidthMin: 1.5,
39
- // strokeWidthMax: 9
40
32
  }
41
33
  },
42
34
  RelationshipLegend: {
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM',
8
- description: 'Force Directed Bubbles無滑鼠托曳及縮放控制',
7
+ description: 'Force Directed Bubbles Chart without mouse drag and zoom control',
8
+ descriptionZh: '無滑鼠托曳及縮放控制的力導向泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -23,14 +23,8 @@ export const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM: PresetPartial<'relationshi
23
23
  ],
24
24
  }
25
25
  }
26
- // padding: {
27
- // top: 40,
28
- // right: 40,
29
- // bottom: 60,
30
- // left: 40
31
- // },
32
26
  },
33
- allPluginParams: {
27
+ pluginParams: {
34
28
  ForceDirectedBubbles: {
35
29
  zoomable: false,
36
30
  },
@@ -0,0 +1,34 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE',
7
+ description: 'Simple Force Directed Bubbles Chart',
8
+ descriptionZh: '簡單力導向泡泡圖',
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
+ },
27
+ pluginParams: {
28
+ ForceDirectedBubbles: {},
29
+ RelationshipLegend: {
30
+ listRectRadius: 7, // 圓型圖例列點
31
+ padding: 7
32
+ }
33
+ }
34
+ }
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_FORCE_DIRECTED_FIX_FONT_SIZE: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_FORCE_DIRECTED_FIX_FONT_SIZE',
8
- description: '基本Force Directed參數',
7
+ description: 'Force Directed Chart with fixed font size',
8
+ descriptionZh: '固定字體大小的力導向圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -23,14 +23,8 @@ export const PRESET_FORCE_DIRECTED_FIX_FONT_SIZE: PresetPartial<'relationship',
23
23
  ],
24
24
  }
25
25
  },
26
- // padding: {
27
- // top: 40,
28
- // right: 40,
29
- // bottom: 60,
30
- // left: 40
31
- // },
32
26
  },
33
- allPluginParams: {
27
+ pluginParams: {
34
28
  ForceDirected: {
35
29
  dotLabel: {
36
30
  sizeFixed: true
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_FORCE_DIRECTED_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_FORCE_DIRECTED_NONE_ARROW',
8
- description: 'Force Directed沒有箭頭',
7
+ description: 'Force Directed Chart without Arrows',
8
+ descriptionZh: '沒有箭頭的力導向圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -23,14 +23,8 @@ export const PRESET_FORCE_DIRECTED_NONE_ARROW: PresetPartial<'relationship', Par
23
23
  ],
24
24
  }
25
25
  },
26
- // padding: {
27
- // top: 40,
28
- // right: 40,
29
- // bottom: 60,
30
- // left: 40
31
- // },
32
26
  },
33
- allPluginParams: {
27
+ pluginParams: {
34
28
  ForceDirected: {
35
29
  arrow: {
36
30
  pointerWidth: 0,
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_FORCE_DIRECTED_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_FORCE_DIRECTED_NONE_ZOOM',
8
- description: 'Force Directed無滑鼠托曳及縮放控制',
7
+ description: 'Force Directed Chart without mouse drag and zoom control',
8
+ descriptionZh: '無滑鼠托曳及縮放控制的力導向圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -23,14 +23,8 @@ export const PRESET_FORCE_DIRECTED_NONE_ZOOM: PresetPartial<'relationship', Part
23
23
  ],
24
24
  }
25
25
  },
26
- // padding: {
27
- // top: 40,
28
- // right: 40,
29
- // bottom: 60,
30
- // left: 40
31
- // },
32
26
  },
33
- allPluginParams: {
27
+ pluginParams: {
34
28
  ForceDirected: {
35
29
  zoomable: false,
36
30
  },
@@ -0,0 +1,34 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_FORCE_DIRECTED_SIMPLE: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_FORCE_DIRECTED_SIMPLE',
7
+ description: 'Simple Force Directed Chart',
8
+ descriptionZh: '簡單力導向圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#4BABFF",
14
+ "#FFA0A0",
15
+ "#7DD3C4",
16
+ "#F9B052",
17
+ "#8454D4",
18
+ "#42C724",
19
+ "#FF4B4B",
20
+ "#904026",
21
+ "#4B25B3",
22
+ "#C50669"
23
+ ],
24
+ }
25
+ },
26
+ },
27
+ pluginParams: {
28
+ ForceDirected: {},
29
+ RelationshipLegend: {
30
+ listRectRadius: 7, // 圓型圖例列點
31
+ padding: 7
32
+ }
33
+ }
34
+ }
@@ -3,6 +3,8 @@ export { PRESET_FORCE_DIRECTED_BUBBLES_BASIC } from './PRESET_FORCE_DIRECTED_BUB
3
3
  export { PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH } from './PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH'
4
4
  export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW'
5
5
  export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM'
6
+ export { PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE } from './PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE'
6
7
  export { PRESET_FORCE_DIRECTED_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_NONE_ZOOM'
7
8
  export { PRESET_FORCE_DIRECTED_FIX_FONT_SIZE } from './PRESET_FORCE_DIRECTED_FIX_FONT_SIZE'
8
- export { PRESET_FORCE_DIRECTED_NONE_ARROW } from './PRESET_FORCE_DIRECTED_NONE_ARROW'
9
+ export { PRESET_FORCE_DIRECTED_NONE_ARROW } from './PRESET_FORCE_DIRECTED_NONE_ARROW'
10
+ export { PRESET_FORCE_DIRECTED_SIMPLE } from './PRESET_FORCE_DIRECTED_SIMPLE'