@orbcharts/presets-basic 3.0.0-alpha.30 → 3.0.0-alpha.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/LICENSE +200 -200
  2. package/package.json +43 -44
  3. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -62
  4. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -59
  5. package/src/grid/PRESET_BARS_ROUND.ts +46 -46
  6. package/src/grid/PRESET_BARS_THIN.ts +43 -43
  7. package/src/grid/PRESET_GRID_BASIC.ts +25 -25
  8. package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -42
  9. package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -33
  10. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -33
  11. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -38
  12. package/src/grid/PRESET_LINES_BASIC.ts +44 -44
  13. package/src/grid/PRESET_LINES_CURVE.ts +47 -47
  14. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -46
  15. package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -60
  16. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -46
  17. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -49
  18. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -48
  19. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -54
  20. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -59
  21. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -58
  22. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -58
  23. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -56
  24. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -59
  25. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -61
  26. package/src/grid/index.ts +22 -22
  27. package/src/index.ts +4 -4
  28. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -36
  29. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -85
  30. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -57
  31. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -59
  32. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -103
  33. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -121
  34. package/src/multiGrid/index.ts +6 -6
  35. package/src/params.ts +56 -56
  36. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -19
  37. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
  38. package/src/series/PRESET_PIE_DONUT.ts +23 -23
  39. package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
  40. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
  41. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +23 -23
  42. package/src/series/PRESET_SERIES_BASIC.ts +15 -15
  43. package/src/series/PRESET_SERIES_DESC.ts +15 -15
  44. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +15 -15
  45. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +16 -16
  46. package/src/series/PRESET_SERIES_SUM_SERIES.ts +15 -15
  47. package/src/series/index.ts +11 -11
  48. package/src/tree/PRESET_TREE_BASIC.ts +25 -25
  49. package/src/types.ts +241 -241
  50. package/tsconfig.base.json +13 -13
  51. package/tsconfig.json +2 -8
  52. package/vite.config.js +23 -0
  53. package/tsconfig.prod.json +0 -3
  54. package/vite.config.mjs +0 -42
  55. /package/dist/{vite.config.d.mts → vite.config.d.ts} +0 -0
package/src/params.ts CHANGED
@@ -1,57 +1,57 @@
1
- import type {
2
- PresetSeriesPluginParams,
3
- PresetGridPluginParams,
4
- PresetMultiGridPluginParams,
5
- PresetTreePluginParams,
6
- PresetNoneDataPluginParams
7
- } from './types'
8
-
9
- export const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams = {
10
- Bubbles: {},
11
- Pie: {},
12
- PieEventTexts: {},
13
- PieLabels: {},
14
- Rose: {},
15
- RoseLabels: {},
16
- SeriesLegend: {},
17
- }
18
-
19
- export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
20
- Bars: {},
21
- BarsPN: {},
22
- BarStack: {},
23
- BarsTriangle: {},
24
- Dots: {},
25
- GridLegend: {},
26
- GroupAux: {},
27
- GroupAxis: {},
28
- LineAreas: {},
29
- Lines: {},
30
- ScalingArea: {},
31
- ValueAxis: {},
32
- ValueStackAxis: {},
33
- }
34
-
35
- export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
36
- MultiBars: {},
37
- MultiBarStack: {},
38
- MultiBarsTriangle: {},
39
- MultiDots: {},
40
- MultiGridLegend: {},
41
- MultiGroupAxis: {},
42
- MultiLineAreas: {},
43
- MultiLines: {},
44
- MultiValueAxis: {},
45
- MultiValueStackAxis: {},
46
- OverlappingValueAxes: {},
47
- OverlappingValueStackAxes: {},
48
- }
49
-
50
- export const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams = {
51
- TreeLegend: {},
52
- TreeMap: {},
53
- }
54
-
55
- export const ALL_PLUGIN_PARAMS_NONE_DATA: PresetNoneDataPluginParams = {
56
- Tooltip: {},
1
+ import type {
2
+ PresetSeriesPluginParams,
3
+ PresetGridPluginParams,
4
+ PresetMultiGridPluginParams,
5
+ PresetTreePluginParams,
6
+ PresetNoneDataPluginParams
7
+ } from './types'
8
+
9
+ export const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams = {
10
+ Bubbles: {},
11
+ Pie: {},
12
+ PieEventTexts: {},
13
+ PieLabels: {},
14
+ Rose: {},
15
+ RoseLabels: {},
16
+ SeriesLegend: {},
17
+ }
18
+
19
+ export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
20
+ Bars: {},
21
+ BarsPN: {},
22
+ BarStack: {},
23
+ BarsTriangle: {},
24
+ Dots: {},
25
+ GridLegend: {},
26
+ GroupAux: {},
27
+ GroupAxis: {},
28
+ LineAreas: {},
29
+ Lines: {},
30
+ ScalingArea: {},
31
+ ValueAxis: {},
32
+ ValueStackAxis: {},
33
+ }
34
+
35
+ export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
36
+ MultiBars: {},
37
+ MultiBarStack: {},
38
+ MultiBarsTriangle: {},
39
+ MultiDots: {},
40
+ MultiGridLegend: {},
41
+ MultiGroupAxis: {},
42
+ MultiLineAreas: {},
43
+ MultiLines: {},
44
+ MultiValueAxis: {},
45
+ MultiValueStackAxis: {},
46
+ OverlappingValueAxes: {},
47
+ OverlappingValueStackAxes: {},
48
+ }
49
+
50
+ export const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams = {
51
+ TreeLegend: {},
52
+ TreeMap: {},
53
+ }
54
+
55
+ export const ALL_PLUGIN_PARAMS_NONE_DATA: PresetNoneDataPluginParams = {
56
+ Tooltip: {},
57
57
  }
@@ -1,19 +1,19 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetBubblesParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'series', PresetBubblesParams
6
- & PresetSeriesLegendParams
7
- & PresetNoneDataPluginParams> = {
8
- name: 'PRESET_BUBBLES_SCALING_BY_RADIUS',
9
- description: '以半徑尺寸為比例的泡泡圖',
10
- allPluginParams: {
11
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
12
- Bubbles: {
13
- arcScaleType: 'radius'
14
- },
15
- SeriesLegend: {
16
- listRectRadius: 7 // 圓型圖例列點
17
- }
18
- },
19
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetBubblesParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'series', PresetBubblesParams
6
+ & PresetSeriesLegendParams
7
+ & PresetNoneDataPluginParams> = {
8
+ name: 'PRESET_BUBBLES_SCALING_BY_RADIUS',
9
+ description: '以半徑尺寸為比例的泡泡圖',
10
+ allPluginParams: {
11
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
12
+ Bubbles: {
13
+ arcScaleType: 'radius'
14
+ },
15
+ SeriesLegend: {
16
+ listRectRadius: 7 // 圓型圖例列點
17
+ }
18
+ },
19
+ }
@@ -1,29 +1,29 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetBubblesParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_BUBBLES_SEPARATE_SERIES: PresetPartial<'series', PresetBubblesParams
6
- & PresetSeriesLegendParams
7
- & PresetNoneDataPluginParams> = {
8
- name: 'PRESET_BUBBLES_SEPARATE_SERIES',
9
- description: '分開顯示Series泡泡',
10
- chartParams: {
11
- // 加長留空
12
- padding: {
13
- top: 160,
14
- right: 160,
15
- bottom: 160,
16
- left: 160
17
- },
18
- },
19
- dataFormatter: {
20
- separateSeries: true,
21
- },
22
- allPluginParams: {
23
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
24
- Bubbles: {},
25
- SeriesLegend: {
26
- listRectRadius: 7 // 圓型圖例列點
27
- }
28
- }
29
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetBubblesParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_BUBBLES_SEPARATE_SERIES: PresetPartial<'series', PresetBubblesParams
6
+ & PresetSeriesLegendParams
7
+ & PresetNoneDataPluginParams> = {
8
+ name: 'PRESET_BUBBLES_SEPARATE_SERIES',
9
+ description: '分開顯示Series泡泡',
10
+ chartParams: {
11
+ // 加長留空
12
+ padding: {
13
+ top: 160,
14
+ right: 160,
15
+ bottom: 160,
16
+ left: 160
17
+ },
18
+ },
19
+ dataFormatter: {
20
+ separateSeries: true,
21
+ },
22
+ allPluginParams: {
23
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
24
+ Bubbles: {},
25
+ SeriesLegend: {
26
+ listRectRadius: 7 // 圓型圖例列點
27
+ }
28
+ }
29
+ }
@@ -1,23 +1,23 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetPieParams, PresetPieLabelsParams, PresetPieEventTextsParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_PIE_DONUT: PresetPartial<'series', PresetPieParams
6
- & PresetPieLabelsParams
7
- & PresetPieEventTextsParams
8
- & PresetSeriesLegendParams
9
- & PresetNoneDataPluginParams> = {
10
- name: 'PRESET_PIE_DONUT',
11
- description: '甜甜圈圖',
12
- allPluginParams: {
13
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
- Pie: {
15
- innerRadius: 0.5
16
- },
17
- PieLabels: {},
18
- PieEventTexts: {},
19
- SeriesLegend: {
20
- listRectRadius: 7 // 圓型圖例列點
21
- }
22
- }
23
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetPieParams, PresetPieLabelsParams, PresetPieEventTextsParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_PIE_DONUT: PresetPartial<'series', PresetPieParams
6
+ & PresetPieLabelsParams
7
+ & PresetPieEventTextsParams
8
+ & PresetSeriesLegendParams
9
+ & PresetNoneDataPluginParams> = {
10
+ name: 'PRESET_PIE_DONUT',
11
+ description: '甜甜圈圖',
12
+ allPluginParams: {
13
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
+ Pie: {
15
+ innerRadius: 0.5
16
+ },
17
+ PieLabels: {},
18
+ PieEventTexts: {},
19
+ SeriesLegend: {
20
+ listRectRadius: 7 // 圓型圖例列點
21
+ }
22
+ }
23
+ }
@@ -1,36 +1,36 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetPieParams, PresetPieLabelsParams, PresetPieEventTextsParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_PIE_HALF_DONUT: PresetPartial<'series', PresetPieParams
6
- & PresetPieLabelsParams
7
- & PresetPieEventTextsParams
8
- & PresetSeriesLegendParams
9
- & PresetNoneDataPluginParams> = {
10
- name: 'PRESET_PIE_HALF_DONUT',
11
- description: '半圓甜甜圈圖',
12
- chartParams: {
13
- padding: {
14
- top: 120,
15
- right: 120,
16
- bottom: 0,
17
- left: 60
18
- },
19
- },
20
- allPluginParams: {
21
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
- Pie: {
23
- innerRadius: 0.5,
24
- startAngle: - Math.PI / 2,
25
- endAngle: Math.PI / 2,
26
- },
27
- PieLabels: {
28
- startAngle: - Math.PI / 2,
29
- endAngle: Math.PI / 2,
30
- },
31
- PieEventTexts: {},
32
- SeriesLegend: {
33
- listRectRadius: 7 // 圓型圖例列點
34
- }
35
- }
36
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetPieParams, PresetPieLabelsParams, PresetPieEventTextsParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_PIE_HALF_DONUT: PresetPartial<'series', PresetPieParams
6
+ & PresetPieLabelsParams
7
+ & PresetPieEventTextsParams
8
+ & PresetSeriesLegendParams
9
+ & PresetNoneDataPluginParams> = {
10
+ name: 'PRESET_PIE_HALF_DONUT',
11
+ description: '半圓甜甜圈圖',
12
+ chartParams: {
13
+ padding: {
14
+ top: 120,
15
+ right: 120,
16
+ bottom: 0,
17
+ left: 60
18
+ },
19
+ },
20
+ allPluginParams: {
21
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
+ Pie: {
23
+ innerRadius: 0.5,
24
+ startAngle: - Math.PI / 2,
25
+ endAngle: Math.PI / 2,
26
+ },
27
+ PieLabels: {
28
+ startAngle: - Math.PI / 2,
29
+ endAngle: Math.PI / 2,
30
+ },
31
+ PieEventTexts: {},
32
+ SeriesLegend: {
33
+ listRectRadius: 7 // 圓型圖例列點
34
+ }
35
+ }
36
+ }
@@ -1,24 +1,24 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetPieParams, PresetPieLabelsParams, PresetPieEventTextsParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_PIE_WITH_INNER_LABELS: PresetPartial<'series', PresetPieParams
6
- & PresetPieLabelsParams
7
- & PresetPieEventTextsParams
8
- & PresetSeriesLegendParams
9
- & PresetNoneDataPluginParams> = {
10
- name: 'PRESET_PIE_WITH_INNER_LABELS',
11
- description: '圓餅圖及內部資料標籤',
12
- allPluginParams: {
13
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
- Pie: {},
15
- PieLabels: {
16
- "labelCentroid": 1.3, // 圖內資料標籤
17
- "labelColorType": "primary"
18
- },
19
- PieEventTexts: {},
20
- SeriesLegend: {
21
- listRectRadius: 7 // 圓型圖例列點
22
- }
23
- }
24
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetPieParams, PresetPieLabelsParams, PresetPieEventTextsParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_PIE_WITH_INNER_LABELS: PresetPartial<'series', PresetPieParams
6
+ & PresetPieLabelsParams
7
+ & PresetPieEventTextsParams
8
+ & PresetSeriesLegendParams
9
+ & PresetNoneDataPluginParams> = {
10
+ name: 'PRESET_PIE_WITH_INNER_LABELS',
11
+ description: '圓餅圖及內部資料標籤',
12
+ allPluginParams: {
13
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
+ Pie: {},
15
+ PieLabels: {
16
+ "labelCentroid": 1.3, // 圖內資料標籤
17
+ "labelColorType": "primary"
18
+ },
19
+ PieEventTexts: {},
20
+ SeriesLegend: {
21
+ listRectRadius: 7 // 圓型圖例列點
22
+ }
23
+ }
24
+ }
@@ -1,23 +1,23 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetRoseParams, PresetRoseLabelsParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_ROSE_SCALING_BY_RADIUS: PresetPartial<'series', PresetRoseParams
6
- & PresetRoseLabelsParams
7
- & PresetSeriesLegendParams
8
- & PresetNoneDataPluginParams> = {
9
- name: 'PRESET_ROSE_SCALING_BY_RADIUS',
10
- description: '以半徑尺寸為比例的玫瑰圖',
11
- allPluginParams: {
12
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
13
- Rose: {
14
- arcScaleType: 'radius'
15
- },
16
- RoseLabels: {
17
- arcScaleType: 'radius',
18
- },
19
- SeriesLegend: {
20
- listRectRadius: 7 // 圓型圖例列點
21
- }
22
- }
23
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetRoseParams, PresetRoseLabelsParams, PresetSeriesLegendParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_ROSE_SCALING_BY_RADIUS: PresetPartial<'series', PresetRoseParams
6
+ & PresetRoseLabelsParams
7
+ & PresetSeriesLegendParams
8
+ & PresetNoneDataPluginParams> = {
9
+ name: 'PRESET_ROSE_SCALING_BY_RADIUS',
10
+ description: '以半徑尺寸為比例的玫瑰圖',
11
+ allPluginParams: {
12
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
13
+ Rose: {
14
+ arcScaleType: 'radius'
15
+ },
16
+ RoseLabels: {
17
+ arcScaleType: 'radius',
18
+ },
19
+ SeriesLegend: {
20
+ listRectRadius: 7 // 圓型圖例列點
21
+ }
22
+ }
23
+ }
@@ -1,15 +1,15 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_SERIES_BASIC: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_SERIES_BASIC',
7
- description: '基本Series參數',
8
- allPluginParams: {
9
- ...ALL_PLUGIN_PARAMS_SERIES,
10
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
11
- SeriesLegend: {
12
- listRectRadius: 7 // 圓型圖例列點
13
- }
14
- }
15
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SERIES_BASIC: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_SERIES_BASIC',
7
+ description: '基本Series參數',
8
+ allPluginParams: {
9
+ ...ALL_PLUGIN_PARAMS_SERIES,
10
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
11
+ SeriesLegend: {
12
+ listRectRadius: 7 // 圓型圖例列點
13
+ }
14
+ }
15
+ }
@@ -1,16 +1,16 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_SERIES_DESC: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_SERIES_DESC',
7
- description: '資料由大到小排序',
8
- dataFormatter: {
9
- sort: (a, b) => b.value - a.value
10
- },
11
- allPluginParams: {
12
- ...ALL_PLUGIN_PARAMS_SERIES,
13
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
- }
15
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SERIES_DESC: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_SERIES_DESC',
7
+ description: '資料由大到小排序',
8
+ dataFormatter: {
9
+ sort: (a, b) => b.value - a.value
10
+ },
11
+ allPluginParams: {
12
+ ...ALL_PLUGIN_PARAMS_SERIES,
13
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
+ }
15
+ }
16
16
  PRESET_SERIES_DESC.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
@@ -1,15 +1,15 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_SERIES_SEPARATE_SERIES: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_SERIES_SEPARATE_SERIES',
7
- description: '分開顯示Series',
8
- dataFormatter: {
9
- separateSeries: true,
10
- },
11
- allPluginParams: {
12
- ...ALL_PLUGIN_PARAMS_SERIES,
13
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
- }
15
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SERIES_SEPARATE_SERIES: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_SERIES_SEPARATE_SERIES',
7
+ description: '分開顯示Series',
8
+ dataFormatter: {
9
+ separateSeries: true,
10
+ },
11
+ allPluginParams: {
12
+ ...ALL_PLUGIN_PARAMS_SERIES,
13
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
+ }
15
+ }
@@ -1,16 +1,16 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES',
7
- description: '分開顯示Series並合併Series資料',
8
- dataFormatter: {
9
- separateSeries: true,
10
- sumSeries: true,
11
- },
12
- allPluginParams: {
13
- ...ALL_PLUGIN_PARAMS_SERIES,
14
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
15
- }
16
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES',
7
+ description: '分開顯示Series並合併Series資料',
8
+ dataFormatter: {
9
+ separateSeries: true,
10
+ sumSeries: true,
11
+ },
12
+ allPluginParams: {
13
+ ...ALL_PLUGIN_PARAMS_SERIES,
14
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
15
+ }
16
+ }
@@ -1,15 +1,15 @@
1
- import type { PresetPartial } from '@orbcharts/core'
2
- import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_SERIES_SUM_SERIES: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
- name: 'PRESET_SERIES_SUM_SERIES',
7
- description: '合併Series資料',
8
- dataFormatter: {
9
- sumSeries: true
10
- },
11
- allPluginParams: {
12
- ...ALL_PLUGIN_PARAMS_SERIES,
13
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
- }
15
- }
1
+ import type { PresetPartial } from '@orbcharts/core'
2
+ import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SERIES_SUM_SERIES: PresetPartial<'series', PresetSeriesPluginParams & PresetNoneDataPluginParams> = {
6
+ name: 'PRESET_SERIES_SUM_SERIES',
7
+ description: '合併Series資料',
8
+ dataFormatter: {
9
+ sumSeries: true
10
+ },
11
+ allPluginParams: {
12
+ ...ALL_PLUGIN_PARAMS_SERIES,
13
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
+ }
15
+ }
@@ -1,11 +1,11 @@
1
- export { PRESET_BUBBLES_SCALING_BY_RADIUS } from './PRESET_BUBBLES_SCALING_BY_RADIUS'
2
- export { PRESET_BUBBLES_SEPARATE_SERIES } from './PRESET_BUBBLES_SEPARATE_SERIES'
3
- export { PRESET_PIE_DONUT } from './PRESET_PIE_DONUT'
4
- export { PRESET_PIE_HALF_DONUT } from './PRESET_PIE_HALF_DONUT'
5
- export { PRESET_PIE_WITH_INNER_LABELS } from './PRESET_PIE_WITH_INNER_LABELS'
6
- export { PRESET_ROSE_SCALING_BY_RADIUS } from './PRESET_ROSE_SCALING_BY_RADIUS'
7
- export { PRESET_SERIES_BASIC } from './PRESET_SERIES_BASIC'
8
- export { PRESET_SERIES_DESC } from './PRESET_SERIES_DESC'
9
- export { PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES } from './PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES'
10
- export { PRESET_SERIES_SEPARATE_SERIES } from './PRESET_SERIES_SEPARATE_SERIES'
11
- export { PRESET_SERIES_SUM_SERIES } from './PRESET_SERIES_SUM_SERIES'
1
+ export { PRESET_BUBBLES_SCALING_BY_RADIUS } from './PRESET_BUBBLES_SCALING_BY_RADIUS'
2
+ export { PRESET_BUBBLES_SEPARATE_SERIES } from './PRESET_BUBBLES_SEPARATE_SERIES'
3
+ export { PRESET_PIE_DONUT } from './PRESET_PIE_DONUT'
4
+ export { PRESET_PIE_HALF_DONUT } from './PRESET_PIE_HALF_DONUT'
5
+ export { PRESET_PIE_WITH_INNER_LABELS } from './PRESET_PIE_WITH_INNER_LABELS'
6
+ export { PRESET_ROSE_SCALING_BY_RADIUS } from './PRESET_ROSE_SCALING_BY_RADIUS'
7
+ export { PRESET_SERIES_BASIC } from './PRESET_SERIES_BASIC'
8
+ export { PRESET_SERIES_DESC } from './PRESET_SERIES_DESC'
9
+ export { PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES } from './PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES'
10
+ export { PRESET_SERIES_SEPARATE_SERIES } from './PRESET_SERIES_SEPARATE_SERIES'
11
+ export { PRESET_SERIES_SUM_SERIES } from './PRESET_SERIES_SUM_SERIES'