@orbcharts/presets-basic 3.0.0-beta.13 → 3.0.0-beta.15

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 (111) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +1870 -542
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/lib/core-types.ts +7 -7
  5. package/lib/plugins-basic-types.ts +6 -6
  6. package/package.json +42 -42
  7. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +74 -60
  8. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +75 -61
  9. package/src/grid/PRESET_BARS_ROUND.ts +70 -56
  10. package/src/grid/PRESET_BARS_THIN.ts +67 -53
  11. package/src/grid/PRESET_GRID_BASIC.ts +58 -44
  12. package/src/grid/PRESET_GRID_HORIZONTAL.ts +75 -61
  13. package/src/grid/PRESET_GRID_PN_SCALE.ts +66 -52
  14. package/src/grid/PRESET_GRID_PN_SCALE_SIMPLE.ts +63 -49
  15. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +66 -52
  16. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +71 -57
  17. package/src/grid/PRESET_GRID_SIMPLE.ts +58 -44
  18. package/src/grid/PRESET_LINES_BASIC.ts +62 -48
  19. package/src/grid/PRESET_LINES_CURVE.ts +65 -51
  20. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +64 -50
  21. package/src/grid/PRESET_LINES_HORIZONTAL.ts +70 -56
  22. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +64 -50
  23. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +67 -53
  24. package/src/grid/PRESET_LINES_SIMPLE.ts +67 -53
  25. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +66 -52
  26. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +68 -54
  27. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +79 -65
  28. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +72 -58
  29. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +72 -58
  30. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +70 -56
  31. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +73 -59
  32. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +74 -60
  33. package/src/grid/PRESET_LINE_AREAS_SIMPLE.ts +71 -57
  34. package/src/grid/index.ts +26 -26
  35. package/src/index.ts +6 -6
  36. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +64 -50
  37. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +112 -98
  38. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING_SIMPLE.ts +115 -101
  39. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +85 -71
  40. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE_SIMPLE.ts +95 -81
  41. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +87 -73
  42. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID_SIMPLE.ts +98 -84
  43. package/src/multiGrid/PRESET_MULTI_GRID_SIMPLE.ts +74 -60
  44. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +115 -101
  45. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID_SIMPLE.ts +124 -110
  46. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +133 -119
  47. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID_SIMPLE.ts +127 -113
  48. package/src/multiGrid/index.ts +12 -12
  49. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +53 -39
  50. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +64 -50
  51. package/src/multiValue/PRESET_MULTI_VALUE_SIMPLE.ts +53 -39
  52. package/src/multiValue/PRESET_RACING_BARS_ALL_ITEMS.ts +58 -44
  53. package/src/multiValue/PRESET_RACING_BARS_BASIC.ts +57 -43
  54. package/src/multiValue/PRESET_RACING_BARS_FAST.ts +57 -43
  55. package/src/multiValue/PRESET_RACING_BARS_FASTER.ts +57 -43
  56. package/src/multiValue/PRESET_RACING_BARS_LOOP.ts +58 -44
  57. package/src/multiValue/PRESET_RACING_BARS_OUTSIDE_LABELS.ts +61 -47
  58. package/src/multiValue/PRESET_RACING_BARS_SEPARATE_CATEGORY.ts +74 -60
  59. package/src/multiValue/PRESET_RACING_BARS_SIMPLE.ts +57 -43
  60. package/src/multiValue/PRESET_RACING_BARS_STOP.ts +56 -42
  61. package/src/multiValue/PRESET_SCATTER_BASIC.ts +54 -40
  62. package/src/multiValue/PRESET_SCATTER_BUBBLES_BASIC.ts +54 -40
  63. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +57 -43
  64. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +57 -43
  65. package/src/multiValue/PRESET_SCATTER_BUBBLES_SEPARATE_CATEGORY.ts +57 -43
  66. package/src/multiValue/PRESET_SCATTER_BUBBLES_SIMPLE.ts +54 -40
  67. package/src/multiValue/PRESET_SCATTER_SEPARATE_CATEGORY.ts +65 -51
  68. package/src/multiValue/PRESET_SCATTER_SIMPLE.ts +54 -40
  69. package/src/multiValue/index.ts +20 -20
  70. package/src/params.ts +83 -83
  71. package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +47 -33
  72. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +47 -33
  73. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +52 -38
  74. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +52 -38
  75. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +49 -35
  76. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_SIMPLE.ts +48 -34
  77. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +54 -40
  78. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +52 -38
  79. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +49 -35
  80. package/src/relationship/PRESET_FORCE_DIRECTED_SIMPLE.ts +48 -34
  81. package/src/relationship/index.ts +9 -9
  82. package/src/series/PRESET_BUBBLES_BASIC.ts +46 -32
  83. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +49 -35
  84. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +58 -44
  85. package/src/series/PRESET_BUBBLES_SIMPLE.ts +53 -39
  86. package/src/series/PRESET_BUBBLES_SUM_SERIES.ts +48 -34
  87. package/src/series/PRESET_PIE_BASIC.ts +49 -35
  88. package/src/series/PRESET_PIE_DONUT.ts +54 -40
  89. package/src/series/PRESET_PIE_HALF_DONUT.ts +66 -52
  90. package/src/series/PRESET_PIE_SEPARATE_SERIES.ts +47 -33
  91. package/src/series/PRESET_PIE_SIMPLE.ts +56 -42
  92. package/src/series/PRESET_PIE_SUM_SERIES.ts +48 -34
  93. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +55 -41
  94. package/src/series/PRESET_ROSE_BASIC.ts +55 -41
  95. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +61 -47
  96. package/src/series/PRESET_ROSE_SEPARATE_SERIES.ts +55 -41
  97. package/src/series/PRESET_ROSE_SEPARATE_SERIES_AND_SUM_SERIES.ts +56 -42
  98. package/src/series/PRESET_ROSE_SIMPLE.ts +56 -42
  99. package/src/series/PRESET_ROSE_SUM_SERIES.ts +54 -40
  100. package/src/series/PRESET_SERIES_BASIC.ts +46 -32
  101. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +47 -15
  102. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +48 -16
  103. package/src/series/PRESET_SERIES_SUM_SERIES.ts +49 -17
  104. package/src/series/index.ts +23 -23
  105. package/src/tree/PRESET_TREE_MAP_BASIC.ts +58 -44
  106. package/src/tree/PRESET_TREE_MAP_SIMPLE.ts +54 -40
  107. package/src/tree/index.ts +1 -1
  108. package/src/types.ts +368 -368
  109. package/tsconfig.base.json +13 -13
  110. package/tsconfig.json +2 -2
  111. package/vite.config.js +22 -22
@@ -1,52 +1,66 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_GRID_PN_SCALE',
8
- description: 'Positive negative scale',
9
- descriptionZh: '正負值分向圖',
10
- chartParams: {
11
- colors: {
12
- light: {
13
- label: [
14
- "#4BABFF",
15
- "#FFA0A0",
16
- "#7DD3C4",
17
- "#F9B052",
18
- "#8454D4",
19
- "#42C724",
20
- "#FF4B4B",
21
- "#904026",
22
- "#4B25B3",
23
- "#C50669"
24
- ],
25
- }
26
- },
27
- padding: {
28
- top: 40,
29
- right: 40,
30
- bottom: 100,
31
- left: 80
32
- },
33
- },
34
- dataFormatter: {
35
- // grid: {
36
- valueAxis: {
37
- scaleDomain: ['auto', 'auto'],
38
- scaleRange: [0.05, 0.95],
39
- },
40
- // }
41
- },
42
- pluginParams: {
43
- // ...ALL_PLUGIN_PARAMS_GRID,
44
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
45
- GridLegend: {
46
- // position: 'bottom',
47
- // justify: 'center',
48
- placement: 'bottom',
49
- padding: 14,
50
- }
51
- }
52
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_PN_SCALE',
8
+ description: 'Positive negative scale',
9
+ descriptionZh: '正負值分向圖',
10
+ chartParams: {
11
+ colors: {
12
+ light: {
13
+ label: [
14
+ "#0088FF",
15
+ "#FF72BB",
16
+ "#16B59B",
17
+ "#F9B052",
18
+ "#6F3BD5",
19
+ "#42C724",
20
+ "#FF3232",
21
+ "#904026",
22
+ "#1F3172",
23
+ "#E23D93"
24
+ ],
25
+ },
26
+ dark: {
27
+ label: [
28
+ "#4BABFF",
29
+ "#FFA0A0",
30
+ "#7DD3C4",
31
+ "#FAC77D",
32
+ "#8454D4",
33
+ "#42C724",
34
+ "#FF6C6C",
35
+ "#D4785A",
36
+ "#5366AC",
37
+ "#FF8DC8"
38
+ ]
39
+ }
40
+ },
41
+ padding: {
42
+ top: 40,
43
+ right: 40,
44
+ bottom: 100,
45
+ left: 80
46
+ },
47
+ },
48
+ dataFormatter: {
49
+ // grid: {
50
+ valueAxis: {
51
+ scaleDomain: ['auto', 'auto'],
52
+ scaleRange: [0.05, 0.95],
53
+ },
54
+ // }
55
+ },
56
+ pluginParams: {
57
+ // ...ALL_PLUGIN_PARAMS_GRID,
58
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
59
+ GridLegend: {
60
+ // position: 'bottom',
61
+ // justify: 'center',
62
+ placement: 'bottom',
63
+ padding: 14,
64
+ }
65
+ }
66
+ }
@@ -1,49 +1,63 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
-
4
- export const PRESET_GRID_PN_SCALE_SIMPLE: PresetPartial<'grid', Partial<PresetGridPluginParams>
5
- & Partial<PresetNoneDataPluginParams>> = {
6
- name: 'PRESET_GRID_PN_SCALE_SIMPLE',
7
- description: 'Simple positive negative scale',
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
- padding: {
27
- top: 40,
28
- right: 40,
29
- bottom: 80,
30
- left: 40
31
- },
32
- },
33
- dataFormatter: {
34
- valueAxis: {
35
- scaleDomain: ['auto', 'auto'],
36
- scaleRange: [0.05, 0.95],
37
- },
38
- },
39
- pluginParams: {
40
- // ...ALL_PLUGIN_PARAMS_GRID,
41
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
42
- GridLegend: {
43
- // position: 'bottom',
44
- // justify: 'center',
45
- placement: 'bottom',
46
- padding: 7,
47
- }
48
- }
49
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_GRID_PN_SCALE_SIMPLE: PresetPartial<'grid', Partial<PresetGridPluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_GRID_PN_SCALE_SIMPLE',
7
+ description: 'Simple positive negative scale',
8
+ descriptionZh: '簡單正負值分向圖',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#0088FF",
14
+ "#FF72BB",
15
+ "#16B59B",
16
+ "#F9B052",
17
+ "#6F3BD5",
18
+ "#42C724",
19
+ "#FF3232",
20
+ "#904026",
21
+ "#1F3172",
22
+ "#E23D93"
23
+ ],
24
+ },
25
+ dark: {
26
+ label: [
27
+ "#4BABFF",
28
+ "#FFA0A0",
29
+ "#7DD3C4",
30
+ "#FAC77D",
31
+ "#8454D4",
32
+ "#42C724",
33
+ "#FF6C6C",
34
+ "#D4785A",
35
+ "#5366AC",
36
+ "#FF8DC8"
37
+ ]
38
+ }
39
+ },
40
+ padding: {
41
+ top: 40,
42
+ right: 40,
43
+ bottom: 80,
44
+ left: 40
45
+ },
46
+ },
47
+ dataFormatter: {
48
+ valueAxis: {
49
+ scaleDomain: ['auto', 'auto'],
50
+ scaleRange: [0.05, 0.95],
51
+ },
52
+ },
53
+ pluginParams: {
54
+ // ...ALL_PLUGIN_PARAMS_GRID,
55
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
56
+ GridLegend: {
57
+ // position: 'bottom',
58
+ // justify: 'center',
59
+ placement: 'bottom',
60
+ padding: 7,
61
+ }
62
+ }
63
+ }
@@ -1,52 +1,66 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_GRID_ROTATE_AXIS_LABEL',
8
- description: 'Rotate axis label',
9
- descriptionZh: '傾斜標籤',
10
- chartParams: {
11
- colors: {
12
- light: {
13
- label: [
14
- "#4BABFF",
15
- "#FFA0A0",
16
- "#7DD3C4",
17
- "#F9B052",
18
- "#8454D4",
19
- "#42C724",
20
- "#FF4B4B",
21
- "#904026",
22
- "#4B25B3",
23
- "#C50669"
24
- ],
25
- }
26
- },
27
- // 間距下面加長留空
28
- padding: {
29
- top: 40,
30
- right: 40,
31
- bottom: 140,
32
- left: 80
33
- },
34
- },
35
- pluginParams: {
36
- // ...ALL_PLUGIN_PARAMS_GRID,
37
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
38
- GroupAux: {
39
- labelRotate: -30
40
- },
41
- GroupAxis: {
42
- tickPadding: 15,
43
- tickTextRotate: -30
44
- },
45
- GridLegend: {
46
- // position: 'bottom',
47
- // justify: 'center',
48
- placement: 'bottom',
49
- padding: 14,
50
- }
51
- }
52
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_ROTATE_AXIS_LABEL',
8
+ description: 'Rotate axis label',
9
+ descriptionZh: '傾斜標籤',
10
+ chartParams: {
11
+ colors: {
12
+ light: {
13
+ label: [
14
+ "#0088FF",
15
+ "#FF72BB",
16
+ "#16B59B",
17
+ "#F9B052",
18
+ "#6F3BD5",
19
+ "#42C724",
20
+ "#FF3232",
21
+ "#904026",
22
+ "#1F3172",
23
+ "#E23D93"
24
+ ],
25
+ },
26
+ dark: {
27
+ label: [
28
+ "#4BABFF",
29
+ "#FFA0A0",
30
+ "#7DD3C4",
31
+ "#FAC77D",
32
+ "#8454D4",
33
+ "#42C724",
34
+ "#FF6C6C",
35
+ "#D4785A",
36
+ "#5366AC",
37
+ "#FF8DC8"
38
+ ]
39
+ }
40
+ },
41
+ // 間距下面加長留空
42
+ padding: {
43
+ top: 40,
44
+ right: 40,
45
+ bottom: 140,
46
+ left: 80
47
+ },
48
+ },
49
+ pluginParams: {
50
+ // ...ALL_PLUGIN_PARAMS_GRID,
51
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
52
+ GroupAux: {
53
+ labelRotate: -30
54
+ },
55
+ GroupAxis: {
56
+ tickPadding: 15,
57
+ tickTextRotate: -30
58
+ },
59
+ GridLegend: {
60
+ // position: 'bottom',
61
+ // justify: 'center',
62
+ placement: 'bottom',
63
+ padding: 14,
64
+ }
65
+ }
66
+ }
@@ -1,57 +1,71 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_GRID_SEPARATE_SERIES',
8
- description: 'Separate Series',
9
- descriptionZh: '分開顯示Series',
10
- chartParams: {
11
- colors: {
12
- light: {
13
- label: [
14
- "#4BABFF",
15
- "#FFA0A0",
16
- "#7DD3C4",
17
- "#F9B052",
18
- "#8454D4",
19
- "#42C724",
20
- "#FF4B4B",
21
- "#904026",
22
- "#4B25B3",
23
- "#C50669"
24
- ],
25
- }
26
- },
27
- padding: {
28
- top: 40,
29
- right: 40,
30
- bottom: 140,
31
- left: 80
32
- },
33
- },
34
- dataFormatter: {
35
- // grid: {
36
- // seriesSlotIndexes: [0, 1],
37
- separateSeries: true,
38
- // },
39
- },
40
- pluginParams: {
41
- // ...ALL_PLUGIN_PARAMS_GRID,
42
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
43
- GroupAux: {
44
- labelRotate: -30
45
- },
46
- GroupAxis: {
47
- tickPadding: 15,
48
- tickTextRotate: -30
49
- },
50
- GridLegend: {
51
- // position: 'bottom',
52
- // justify: 'center',
53
- placement: 'bottom',
54
- padding: 14,
55
- }
56
- }
57
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_SEPARATE_SERIES',
8
+ description: 'Separate Series',
9
+ descriptionZh: '分開顯示Series',
10
+ chartParams: {
11
+ colors: {
12
+ light: {
13
+ label: [
14
+ "#0088FF",
15
+ "#FF72BB",
16
+ "#16B59B",
17
+ "#F9B052",
18
+ "#6F3BD5",
19
+ "#42C724",
20
+ "#FF3232",
21
+ "#904026",
22
+ "#1F3172",
23
+ "#E23D93"
24
+ ],
25
+ },
26
+ dark: {
27
+ label: [
28
+ "#4BABFF",
29
+ "#FFA0A0",
30
+ "#7DD3C4",
31
+ "#FAC77D",
32
+ "#8454D4",
33
+ "#42C724",
34
+ "#FF6C6C",
35
+ "#D4785A",
36
+ "#5366AC",
37
+ "#FF8DC8"
38
+ ]
39
+ }
40
+ },
41
+ padding: {
42
+ top: 40,
43
+ right: 40,
44
+ bottom: 140,
45
+ left: 80
46
+ },
47
+ },
48
+ dataFormatter: {
49
+ // grid: {
50
+ // seriesSlotIndexes: [0, 1],
51
+ separateSeries: true,
52
+ // },
53
+ },
54
+ pluginParams: {
55
+ // ...ALL_PLUGIN_PARAMS_GRID,
56
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
57
+ GroupAux: {
58
+ labelRotate: -30
59
+ },
60
+ GroupAxis: {
61
+ tickPadding: 15,
62
+ tickTextRotate: -30
63
+ },
64
+ GridLegend: {
65
+ // position: 'bottom',
66
+ // justify: 'center',
67
+ placement: 'bottom',
68
+ padding: 14,
69
+ }
70
+ }
71
+ }
@@ -1,44 +1,58 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
-
4
- export const PRESET_GRID_SIMPLE: PresetPartial<'grid', Partial<PresetGridPluginParams>
5
- & Partial<PresetNoneDataPluginParams>> = {
6
- name: 'PRESET_GRID_SIMPLE',
7
- description: 'Simple Grid',
8
- descriptionZh: '簡單Grid',
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
- padding: {
27
- top: 40,
28
- right: 40,
29
- bottom: 80,
30
- left: 40
31
- },
32
- },
33
- dataFormatter: {
34
- valueAxis: {
35
- scaleRange: [0, 0.95]
36
- }
37
- },
38
- pluginParams: {
39
- GridLegend: {
40
- placement: 'bottom',
41
- padding: 7,
42
- }
43
- }
44
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+
4
+ export const PRESET_GRID_SIMPLE: PresetPartial<'grid', Partial<PresetGridPluginParams>
5
+ & Partial<PresetNoneDataPluginParams>> = {
6
+ name: 'PRESET_GRID_SIMPLE',
7
+ description: 'Simple Grid',
8
+ descriptionZh: '簡單Grid',
9
+ chartParams: {
10
+ colors: {
11
+ light: {
12
+ label: [
13
+ "#0088FF",
14
+ "#FF72BB",
15
+ "#16B59B",
16
+ "#F9B052",
17
+ "#6F3BD5",
18
+ "#42C724",
19
+ "#FF3232",
20
+ "#904026",
21
+ "#1F3172",
22
+ "#E23D93"
23
+ ],
24
+ },
25
+ dark: {
26
+ label: [
27
+ "#4BABFF",
28
+ "#FFA0A0",
29
+ "#7DD3C4",
30
+ "#FAC77D",
31
+ "#8454D4",
32
+ "#42C724",
33
+ "#FF6C6C",
34
+ "#D4785A",
35
+ "#5366AC",
36
+ "#FF8DC8"
37
+ ]
38
+ }
39
+ },
40
+ padding: {
41
+ top: 40,
42
+ right: 40,
43
+ bottom: 80,
44
+ left: 40
45
+ },
46
+ },
47
+ dataFormatter: {
48
+ valueAxis: {
49
+ scaleRange: [0, 0.95]
50
+ }
51
+ },
52
+ pluginParams: {
53
+ GridLegend: {
54
+ placement: 'bottom',
55
+ padding: 7,
56
+ }
57
+ }
58
+ }