@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 { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_BUBBLES_BASIC: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_BUBBLES_BASIC',
8
- description: '基本泡泡圖',
7
+ description: 'Basic bubble chart',
8
+ descriptionZh: '基本泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -24,9 +24,7 @@ export const PRESET_BUBBLES_BASIC: PresetPartial<'series', Partial<PresetSeriesP
24
24
  }
25
25
  }
26
26
  },
27
- allPluginParams: {
28
- // ...ALL_PLUGIN_PARAMS_SERIES,
29
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
27
+ pluginParams: {
30
28
  SeriesLegend: {
31
29
  listRectRadius: 7 // 圓型圖例列點
32
30
  }
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetBubblesParams, PresetSeriesLegendParams, PresetSeriesTooltipParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_BUBBLES_SCALING_BY_RADIUS',
8
- description: '以半徑尺寸為比例的泡泡圖',
7
+ description: 'Bubble chart scaled by radius size',
8
+ descriptionZh: '以半徑尺寸為比例的泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -24,8 +24,7 @@ export const PRESET_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'series', Partial<P
24
24
  }
25
25
  }
26
26
  },
27
- allPluginParams: {
28
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
27
+ pluginParams: {
29
28
  Bubbles: {
30
29
  arcScaleType: 'radius'
31
30
  },
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_BUBBLES_SEPARATE_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_BUBBLES_SEPARATE_SERIES',
8
- description: '分開顯示Series的泡泡圖',
7
+ description: 'Bubble chart showing series separately',
8
+ descriptionZh: '分開顯示Series的泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -34,8 +34,7 @@ export const PRESET_BUBBLES_SEPARATE_SERIES: PresetPartial<'series', Partial<Pre
34
34
  dataFormatter: {
35
35
  separateSeries: true,
36
36
  },
37
- allPluginParams: {
38
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
37
+ pluginParams: {
39
38
  Bubbles: {},
40
39
  SeriesLegend: {
41
40
  listRectRadius: 7 // 圓型圖例列點
@@ -0,0 +1,39 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_BUBBLES_SIMPLE: PresetPartial<'series', Partial<PresetSeriesPluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_BUBBLES_SIMPLE',
7
+ description: 'Simple bubble chart',
8
+ descriptionZh: '簡單泡泡圖',
9
+ chartParams: {
10
+ padding: {
11
+ top: 40,
12
+ right: 40,
13
+ bottom: 40,
14
+ left: 40
15
+ },
16
+ colors: {
17
+ light: {
18
+ label: [
19
+ "#6CBAFF",
20
+ "#FF6C6C",
21
+ "#F9B052",
22
+ "#7DD3C4",
23
+ "#AA93D2",
24
+ "#0088FF",
25
+ "#FFBABA",
26
+ "#86DC72",
27
+ "#EF76FF",
28
+ "#C4C4C4"
29
+ ],
30
+ }
31
+ }
32
+ },
33
+ pluginParams: {
34
+ SeriesLegend: {
35
+ listRectRadius: 7, // 圓型圖例列點
36
+ padding: 7
37
+ }
38
+ }
39
+ }
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_BUBBLES_SUM_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_BUBBLES_SUM_SERIES',
8
- description: '合併Series資料的泡泡圖',
7
+ description: 'Bubble chart of combined Series data',
8
+ descriptionZh: '合併Series資料的泡泡圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -28,9 +28,7 @@ export const PRESET_BUBBLES_SUM_SERIES: PresetPartial<'series', Partial<PresetSe
28
28
  sort: (a, b) => b.value - a.value,
29
29
  sumSeries: true
30
30
  },
31
- allPluginParams: {
32
- // ...ALL_PLUGIN_PARAMS_SERIES,
33
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
31
+ pluginParams: {
34
32
  }
35
33
  }
36
34
  PRESET_BUBBLES_SUM_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetSeriesTooltipParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_PIE_BASIC: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_PIE_BASIC',
8
- description: '基本圓餅圖',
7
+ description: 'Basic pie chart',
8
+ descriptionZh: '基本圓餅圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -27,8 +27,7 @@ export const PRESET_PIE_BASIC: PresetPartial<'series', Partial<PresetSeriesPlugi
27
27
  dataFormatter: {
28
28
  sort: (a, b) => b.value - a.value
29
29
  },
30
- allPluginParams: {
31
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
30
+ pluginParams: {
32
31
  SeriesLegend: {
33
32
  listRectRadius: 7 // 圓型圖例列點
34
33
  }
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_PIE_DONUT: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_PIE_DONUT',
8
- description: '甜甜圈圖',
7
+ description: 'Donut chart',
8
+ descriptionZh: '甜甜圈圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -27,8 +27,7 @@ export const PRESET_PIE_DONUT: PresetPartial<'series', Partial<PresetSeriesPlugi
27
27
  dataFormatter: {
28
28
  sort: (a, b) => b.value - a.value
29
29
  },
30
- allPluginParams: {
31
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
30
+ pluginParams: {
32
31
  Pie: {
33
32
  innerRadius: 0.5
34
33
  },
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_PIE_HALF_DONUT: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_PIE_HALF_DONUT',
8
- description: '半圓甜甜圈圖',
7
+ description: 'Half donut chart',
8
+ descriptionZh: '半圓甜甜圈圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -33,8 +33,7 @@ export const PRESET_PIE_HALF_DONUT: PresetPartial<'series', Partial<PresetSeries
33
33
  dataFormatter: {
34
34
  sort: (a, b) => b.value - a.value
35
35
  },
36
- allPluginParams: {
37
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
36
+ pluginParams: {
38
37
  Pie: {
39
38
  innerRadius: 0.5,
40
39
  startAngle: - Math.PI / 2,
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_PIE_SEPARATE_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_PIE_SEPARATE_SERIES',
8
- description: '分開顯示Series的圓餅圖',
7
+ description: 'Separate pie chart of Series',
8
+ descriptionZh: '分開顯示Series的圓餅圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -28,9 +28,7 @@ export const PRESET_PIE_SEPARATE_SERIES: PresetPartial<'series', Partial<PresetS
28
28
  sort: (a, b) => b.value - a.value,
29
29
  separateSeries: true,
30
30
  },
31
- allPluginParams: {
32
- // ...ALL_PLUGIN_PARAMS_SERIES,
33
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
31
+ pluginParams: {
34
32
  }
35
33
  }
36
34
  PRESET_PIE_SEPARATE_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -0,0 +1,43 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetSeriesPluginParams, PresetSeriesTooltipParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_PIE_SIMPLE: PresetPartial<'series', Partial<PresetSeriesPluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_PIE_SIMPLE',
7
+ description: 'Simple pie chart',
8
+ descriptionZh: '簡單圓餅圖',
9
+ chartParams: {
10
+ padding: {
11
+ top: 30,
12
+ right: 30,
13
+ bottom: 30,
14
+ left: 30
15
+ },
16
+ colors: {
17
+ light: {
18
+ label: [
19
+ "#7DD3C4",
20
+ "#FFA0A0",
21
+ "#6CBAFF",
22
+ "#55D339",
23
+ "#F9B052",
24
+ "#FF6C6C",
25
+ "#8E6BC9",
26
+ "#0088FF",
27
+ "#904026",
28
+ "#C4C4C4"
29
+ ],
30
+ }
31
+ }
32
+ },
33
+ dataFormatter: {
34
+ sort: (a, b) => b.value - a.value
35
+ },
36
+ pluginParams: {
37
+ SeriesLegend: {
38
+ listRectRadius: 7, // 圓型圖例列點
39
+ padding: 7
40
+ }
41
+ }
42
+ }
43
+ PRESET_PIE_SIMPLE.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_PIE_SUM_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_PIE_SUM_SERIES',
8
- description: '合併Series資料的圓餅圖',
7
+ description: 'Pie chart of combined Series data',
8
+ descriptionZh: '合併Series資料的圓餅圖',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -28,9 +28,7 @@ export const PRESET_PIE_SUM_SERIES: PresetPartial<'series', Partial<PresetSeries
28
28
  sort: (a, b) => b.value - a.value,
29
29
  sumSeries: true
30
30
  },
31
- allPluginParams: {
32
- // ...ALL_PLUGIN_PARAMS_SERIES,
33
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
31
+ pluginParams: {
34
32
  }
35
33
  }
36
34
  PRESET_PIE_SUM_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_PIE_WITH_INNER_LABELS: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_PIE_WITH_INNER_LABELS',
8
- description: '圓餅圖及內部資料標籤',
7
+ description: 'Pie chart with inner data labels',
8
+ descriptionZh: '圓餅圖及內部資料標籤',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -27,8 +27,7 @@ export const PRESET_PIE_WITH_INNER_LABELS: PresetPartial<'series', Partial<Prese
27
27
  dataFormatter: {
28
28
  sort: (a, b) => b.value - a.value
29
29
  },
30
- allPluginParams: {
31
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
30
+ pluginParams: {
32
31
  Pie: {},
33
32
  PieLabels: {
34
33
  "labelCentroid": 1.3, // 圖內資料標籤
@@ -1,12 +1,18 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_ROSE_BASIC: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_ROSE_BASIC',
8
- description: '基本Rose參數',
7
+ description: 'Basic Rose chart',
8
+ descriptionZh: '基本Rose參數',
9
9
  chartParams: {
10
+ padding: {
11
+ top: 40,
12
+ right: 40,
13
+ bottom: 40,
14
+ left: 40
15
+ },
10
16
  colors: {
11
17
  light: {
12
18
  label: [
@@ -27,9 +33,7 @@ export const PRESET_ROSE_BASIC: PresetPartial<'series', Partial<PresetSeriesPlug
27
33
  dataFormatter: {
28
34
  sort: (a, b) => b.value - a.value
29
35
  },
30
- allPluginParams: {
31
- // ...ALL_PLUGIN_PARAMS_SERIES,
32
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
36
+ pluginParams: {
33
37
  SeriesLegend: {
34
38
  listRectRadius: 7 // 圓型圖例列點
35
39
  }
@@ -1,12 +1,18 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_ROSE_SCALING_BY_RADIUS: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_ROSE_SCALING_BY_RADIUS',
8
- description: '以半徑尺寸為比例的玫瑰圖',
7
+ description: 'Rose chart with radius scaling',
8
+ descriptionZh: '以半徑尺寸為比例的玫瑰圖',
9
9
  chartParams: {
10
+ padding: {
11
+ top: 40,
12
+ right: 40,
13
+ bottom: 40,
14
+ left: 40
15
+ },
10
16
  colors: {
11
17
  light: {
12
18
  label: [
@@ -27,8 +33,7 @@ export const PRESET_ROSE_SCALING_BY_RADIUS: PresetPartial<'series', Partial<Pres
27
33
  dataFormatter: {
28
34
  sort: (a, b) => b.value - a.value
29
35
  },
30
- allPluginParams: {
31
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
36
+ pluginParams: {
32
37
  Rose: {
33
38
  arcScaleType: 'radius'
34
39
  },
@@ -1,12 +1,18 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_ROSE_SEPARATE_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_ROSE_SEPARATE_SERIES',
8
- description: '分開顯示Series的玫瑰圖',
7
+ description: 'Separate rose chart of Series',
8
+ descriptionZh: '分開顯示Series的玫瑰圖',
9
9
  chartParams: {
10
+ padding: {
11
+ top: 40,
12
+ right: 40,
13
+ bottom: 40,
14
+ left: 40
15
+ },
10
16
  colors: {
11
17
  light: {
12
18
  label: [
@@ -28,7 +34,7 @@ export const PRESET_ROSE_SEPARATE_SERIES: PresetPartial<'series', Partial<Preset
28
34
  sort: (a, b) => b.value - a.value,
29
35
  separateSeries: true,
30
36
  },
31
- allPluginParams: {
37
+ pluginParams: {
32
38
  // ...ALL_PLUGIN_PARAMS_SERIES,
33
39
  // ...ALL_PLUGIN_PARAMS_NONE_DATA,
34
40
  }
@@ -1,12 +1,18 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES',
8
- description: '分開顯示Series並合併Series資料',
7
+ description: 'Separate and sum Series data',
8
+ descriptionZh: '分開顯示Series並合併Series資料',
9
9
  chartParams: {
10
+ padding: {
11
+ top: 40,
12
+ right: 40,
13
+ bottom: 40,
14
+ left: 40
15
+ },
10
16
  colors: {
11
17
  light: {
12
18
  label: [
@@ -29,7 +35,7 @@ export const PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES: PresetPartial<'series',
29
35
  separateSeries: true,
30
36
  sumSeries: true,
31
37
  },
32
- allPluginParams: {
38
+ pluginParams: {
33
39
  // ...ALL_PLUGIN_PARAMS_SERIES,
34
40
  // ...ALL_PLUGIN_PARAMS_NONE_DATA,
35
41
  }
@@ -0,0 +1,43 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_ROSE_SIMPLE: PresetPartial<'series', Partial<PresetSeriesPluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_ROSE_SIMPLE',
7
+ description: 'Simple Rose chart',
8
+ descriptionZh: '簡單Rose參數',
9
+ chartParams: {
10
+ padding: {
11
+ top: 20,
12
+ right: 20,
13
+ bottom: 20,
14
+ left: 20
15
+ },
16
+ colors: {
17
+ light: {
18
+ label: [
19
+ "#8BC8FF",
20
+ "#4BABFF",
21
+ "#0088FF",
22
+ "#55D339",
23
+ "#29AB0C",
24
+ "#16B59B",
25
+ "#FCDCAD",
26
+ "#F9B052",
27
+ "#FF6C6C",
28
+ "#C4C4C4"
29
+ ]
30
+ }
31
+ }
32
+ },
33
+ dataFormatter: {
34
+ sort: (a, b) => b.value - a.value
35
+ },
36
+ pluginParams: {
37
+ SeriesLegend: {
38
+ listRectRadius: 7, // 圓型圖例列點
39
+ padding: 7
40
+ }
41
+ }
42
+ }
43
+ PRESET_ROSE_SIMPLE.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,12 +1,18 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_ROSE_SUM_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_ROSE_SUM_SERIES',
8
- description: '合併Series資料的玫瑰圖',
7
+ description: 'Rose chart of combined Series data',
8
+ descriptionZh: '合併Series資料的玫瑰圖',
9
9
  chartParams: {
10
+ padding: {
11
+ top: 40,
12
+ right: 40,
13
+ bottom: 40,
14
+ left: 40
15
+ },
10
16
  colors: {
11
17
  light: {
12
18
  label: [
@@ -28,9 +34,7 @@ export const PRESET_ROSE_SUM_SERIES: PresetPartial<'series', Partial<PresetSerie
28
34
  sort: (a, b) => b.value - a.value,
29
35
  sumSeries: true
30
36
  },
31
- allPluginParams: {
32
- // ...ALL_PLUGIN_PARAMS_SERIES,
33
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
37
+ pluginParams: {
34
38
  }
35
39
  }
36
40
  PRESET_ROSE_SUM_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,11 +1,11 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SERIES_BASIC: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SERIES_BASIC',
8
- description: '基本Series參數',
7
+ description: 'Basic Series parameters',
8
+ descriptionZh: '基本Series參數',
9
9
  chartParams: {
10
10
  colors: {
11
11
  light: {
@@ -24,9 +24,7 @@ export const PRESET_SERIES_BASIC: PresetPartial<'series', Partial<PresetSeriesPl
24
24
  }
25
25
  }
26
26
  },
27
- allPluginParams: {
28
- // ...ALL_PLUGIN_PARAMS_SERIES,
29
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
27
+ pluginParams: {
30
28
  SeriesLegend: {
31
29
  listRectRadius: 7 // 圓型圖例列點
32
30
  }
@@ -1,18 +1,16 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SERIES_SEPARATE_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SERIES_SEPARATE_SERIES',
8
- description: '分開顯示Series',
7
+ description: 'Separate Series',
8
+ descriptionZh: '分開顯示Series',
9
9
  dataFormatter: {
10
10
  sort: (a, b) => b.value - a.value,
11
11
  separateSeries: true,
12
12
  },
13
- allPluginParams: {
14
- // ...ALL_PLUGIN_PARAMS_SERIES,
15
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
13
+ pluginParams: {
16
14
  }
17
15
  }
18
16
  PRESET_SERIES_SEPARATE_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,19 +1,17 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES',
8
- description: '分開顯示Series並合併Series資料',
7
+ description: 'Separate and sum Series data',
8
+ descriptionZh: '分開顯示Series並合併Series資料',
9
9
  dataFormatter: {
10
10
  sort: (a, b) => b.value - a.value,
11
11
  separateSeries: true,
12
12
  sumSeries: true,
13
13
  },
14
- allPluginParams: {
15
- // ...ALL_PLUGIN_PARAMS_SERIES,
16
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
+ pluginParams: {
17
15
  }
18
16
  }
19
17
  PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,18 +1,17 @@
1
1
  import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
3
 
5
4
  export const PRESET_SERIES_SUM_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
5
  & Partial<PresetNoneDataPluginParams>> = {
7
6
  name: 'PRESET_SERIES_SUM_SERIES',
8
- description: '合併Series資料',
7
+ description: 'Combine Series data',
8
+ descriptionZh: '合併Series資料',
9
9
  dataFormatter: {
10
10
  sort: (a, b) => b.value - a.value,
11
11
  sumSeries: true
12
12
  },
13
- allPluginParams: {
14
- // ...ALL_PLUGIN_PARAMS_SERIES,
15
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
13
+ pluginParams: {
14
+
16
15
  }
17
16
  }
18
17
  PRESET_SERIES_SUM_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,16 +1,19 @@
1
1
  export { PRESET_BUBBLES_BASIC } from './PRESET_BUBBLES_BASIC'
2
2
  export { PRESET_BUBBLES_SCALING_BY_RADIUS } from './PRESET_BUBBLES_SCALING_BY_RADIUS'
3
3
  export { PRESET_BUBBLES_SEPARATE_SERIES } from './PRESET_BUBBLES_SEPARATE_SERIES'
4
+ export { PRESET_BUBBLES_SIMPLE } from './PRESET_BUBBLES_SIMPLE'
4
5
  export { PRESET_BUBBLES_SUM_SERIES } from './PRESET_BUBBLES_SUM_SERIES'
5
6
  export { PRESET_PIE_BASIC } from './PRESET_PIE_BASIC'
6
7
  export { PRESET_PIE_DONUT } from './PRESET_PIE_DONUT'
7
8
  export { PRESET_PIE_HALF_DONUT } from './PRESET_PIE_HALF_DONUT'
8
9
  export { PRESET_PIE_WITH_INNER_LABELS } from './PRESET_PIE_WITH_INNER_LABELS'
9
10
  export { PRESET_PIE_SEPARATE_SERIES } from './PRESET_PIE_SEPARATE_SERIES'
11
+ export { PRESET_PIE_SIMPLE } from './PRESET_PIE_SIMPLE'
10
12
  export { PRESET_PIE_SUM_SERIES } from './PRESET_PIE_SUM_SERIES'
11
13
  export { PRESET_ROSE_BASIC } from './PRESET_ROSE_BASIC'
12
14
  export { PRESET_ROSE_SCALING_BY_RADIUS } from './PRESET_ROSE_SCALING_BY_RADIUS'
13
15
  export { PRESET_ROSE_SEPARATE_SERIES } from './PRESET_ROSE_SEPARATE_SERIES'
16
+ export { PRESET_ROSE_SIMPLE } from './PRESET_ROSE_SIMPLE'
14
17
  export { PRESET_ROSE_SUM_SERIES } from './PRESET_ROSE_SUM_SERIES'
15
18
  export { PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES } from './PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES'
16
19
  export { PRESET_SERIES_BASIC } from './PRESET_SERIES_BASIC'