@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
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINES_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINES_HORIZONTAL',
10
- description: '橫向折線圖',
9
+ description: 'Horizontal Line',
10
+ descriptionZh: '橫向折線圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,39 +26,28 @@ export const PRESET_LINES_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPl
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 100,
32
32
  left: 160
33
33
  },
34
34
  highlightTarget: 'series'
35
35
  },
36
36
  dataFormatter: {
37
- // grid: {
38
- valueAxis: {
39
- position: 'bottom'
40
- // position: 'top'
41
- // position: 'left'
42
- // position: 'right'
43
- },
44
- groupAxis: {
45
- position: 'left'
46
- // position: 'right'
47
- // position: 'bottom'
48
- // position: 'top'
49
- },
50
- // }
37
+ valueAxis: {
38
+ position: 'bottom'
39
+ },
40
+ groupAxis: {
41
+ position: 'left'
42
+ },
51
43
  },
52
- allPluginParams: {
53
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
44
+ pluginParams: {
54
45
  Lines: {},
55
46
  Dots: {},
56
47
  GroupAxis: {},
57
48
  ValueAxis: {},
58
49
  GroupAux: {},
59
50
  GridLegend: {
60
- // position: 'bottom',
61
- // justify: 'center',
62
51
  placement: 'bottom',
63
52
  padding: 14,
64
53
  listRectHeight: 2
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINES_LOOSE_TICKS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINES_LOOSE_TICKS',
10
- description: '寬鬆標籤',
9
+ description: 'Loose Ticks Line',
10
+ descriptionZh: '寬鬆標籤的折線圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,15 +26,14 @@ export const PRESET_LINES_LOOSE_TICKS: PresetPartial<'grid', Partial<PresetGridP
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 100,
32
32
  left: 80
33
33
  },
34
34
  highlightTarget: 'series'
35
35
  },
36
- allPluginParams: {
37
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
36
+ pluginParams: {
38
37
  Lines: {},
39
38
  Dots: {},
40
39
  GroupAxis: {
@@ -43,8 +42,6 @@ export const PRESET_LINES_LOOSE_TICKS: PresetPartial<'grid', Partial<PresetGridP
43
42
  ValueAxis: {},
44
43
  GroupAux: {},
45
44
  GridLegend: {
46
- // position: 'bottom',
47
- // justify: 'center',
48
45
  placement: 'bottom',
49
46
  padding: 14,
50
47
  listRectHeight: 2
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINES_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINES_ROTATE_AXIS_LABEL',
10
- description: '傾斜標籤',
9
+ description: 'Line chart with slanted labels',
10
+ descriptionZh: '傾斜標籤的折線圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,15 +26,14 @@ export const PRESET_LINES_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<Prese
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 140,
32
32
  left: 80
33
33
  },
34
34
  highlightTarget: 'series'
35
35
  },
36
- allPluginParams: {
37
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
36
+ pluginParams: {
38
37
  Lines: {},
39
38
  Dots: {},
40
39
  GroupAxis: {
@@ -46,8 +45,6 @@ export const PRESET_LINES_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<Prese
46
45
  labelRotate: -30
47
46
  },
48
47
  GridLegend: {
49
- // position: 'bottom',
50
- // justify: 'center',
51
48
  placement: 'bottom',
52
49
  padding: 14,
53
50
  listRectHeight: 2
@@ -0,0 +1,53 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+
6
+ export const PRESET_LINES_SIMPLE: PresetPartial<'grid', Partial<PresetGridPluginParams>
7
+ & Partial<PresetNoneDataPluginParams>> = {
8
+ name: 'PRESET_LINES_SIMPLE',
9
+ description: 'Simple line',
10
+ descriptionZh: '簡單折線圖',
11
+ chartParams: {
12
+ colors: {
13
+ light: {
14
+ label: [
15
+ "#4BABFF",
16
+ "#FFA0A0",
17
+ "#7DD3C4",
18
+ "#F9B052",
19
+ "#8454D4",
20
+ "#42C724",
21
+ "#FF4B4B",
22
+ "#904026",
23
+ "#4B25B3",
24
+ "#C50669"
25
+ ],
26
+ }
27
+ },
28
+ padding: {
29
+ top: 40,
30
+ right: 40,
31
+ bottom: 80,
32
+ left: 40
33
+ },
34
+ highlightTarget: 'series'
35
+ },
36
+ dataFormatter: {
37
+ valueAxis: {
38
+ scaleRange: [0, 0.95]
39
+ }
40
+ },
41
+ pluginParams: {
42
+ Lines: {},
43
+ Dots: {},
44
+ GroupAxis: {},
45
+ ValueAxis: {},
46
+ GroupAux: {},
47
+ GridLegend: {
48
+ placement: 'bottom',
49
+ padding: 7,
50
+ listRectHeight: 2
51
+ }
52
+ }
53
+ }
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINES_WITH_SOLID_DOTS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINES_WITH_SOLID_DOTS',
10
- description: '折線圖及實心圓點',
9
+ description: 'Solid Dots Line',
10
+ descriptionZh: '實心圓點的折線圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,15 +26,14 @@ export const PRESET_LINES_WITH_SOLID_DOTS: PresetPartial<'grid', Partial<PresetG
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 100,
32
32
  left: 80
33
33
  },
34
34
  highlightTarget: 'series'
35
35
  },
36
- allPluginParams: {
37
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
36
+ pluginParams: {
38
37
  Lines: {},
39
38
  Dots: {
40
39
  radius: 3,
@@ -45,8 +44,6 @@ export const PRESET_LINES_WITH_SOLID_DOTS: PresetPartial<'grid', Partial<PresetG
45
44
  ValueAxis: {},
46
45
  GroupAux: {},
47
46
  GridLegend: {
48
- // position: 'bottom',
49
- // justify: 'center',
50
47
  placement: 'bottom',
51
48
  padding: 14,
52
49
  listRectHeight: 2
@@ -7,7 +7,8 @@ import type { PresetGridPluginParams,
7
7
  export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
8
  & Partial<PresetNoneDataPluginParams>> = {
9
9
  name: 'PRESET_LINE_AREAS_BASIC',
10
- description: '基本LineArea參數',
10
+ description: 'Basic LineArea',
11
+ descriptionZh: '基本折線區域圖',
11
12
  chartParams: {
12
13
  colors: {
13
14
  light: {
@@ -26,8 +27,8 @@ export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', Partial<PresetGridPl
26
27
  }
27
28
  },
28
29
  padding: {
29
- top: 60,
30
- right: 60,
30
+ top: 40,
31
+ right: 40,
31
32
  bottom: 100,
32
33
  left: 80
33
34
  },
@@ -40,7 +41,7 @@ export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', Partial<PresetGridPl
40
41
  }
41
42
  // }
42
43
  },
43
- allPluginParams: {
44
+ pluginParams: {
44
45
  // ...ALL_PLUGIN_PARAMS_NONE_DATA,
45
46
  Lines: {},
46
47
  LineAreas: {},
@@ -7,7 +7,8 @@ import type { PresetGridPluginParams,
7
7
  export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
8
  & Partial<PresetNoneDataPluginParams>> = {
9
9
  name: 'PRESET_LINE_AREAS_CURVE',
10
- description: '弧線折線圖',
10
+ description: 'Curve LineArea',
11
+ descriptionZh: '弧線的折線區域圖',
11
12
  chartParams: {
12
13
  colors: {
13
14
  light: {
@@ -26,8 +27,8 @@ export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPl
26
27
  }
27
28
  },
28
29
  padding: {
29
- top: 60,
30
- right: 60,
30
+ top: 40,
31
+ right: 40,
31
32
  bottom: 100,
32
33
  left: 80
33
34
  },
@@ -40,7 +41,7 @@ export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPl
40
41
  }
41
42
  // }
42
43
  },
43
- allPluginParams: {
44
+ pluginParams: {
44
45
  // ...ALL_PLUGIN_PARAMS_NONE_DATA,
45
46
  Lines: {
46
47
  lineCurve: 'curveMonotoneX',
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS',
10
- description: '折線圖及Highlight Group圓點',
9
+ description: 'Highlight Group Dots LineArea',
10
+ descriptionZh: 'Highlight Group圓點的折線區域圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,22 +26,19 @@ export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', Parti
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 100,
32
32
  left: 80
33
33
  },
34
34
  highlightTarget: 'group'
35
35
  },
36
36
  dataFormatter: {
37
- // grid: {
38
- groupAxis: {
39
- scalePadding: 0
40
- }
41
- // }
37
+ groupAxis: {
38
+ scalePadding: 0
39
+ }
42
40
  },
43
- allPluginParams: {
44
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
41
+ pluginParams: {
45
42
  Lines: {
46
43
  lineWidth: 3
47
44
  },
@@ -53,8 +50,6 @@ export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', Parti
53
50
  ValueAxis: {},
54
51
  GroupAux: {},
55
52
  GridLegend: {
56
- // position: 'bottom',
57
- // justify: 'center',
58
53
  placement: 'bottom',
59
54
  padding: 14,
60
55
  listRectHeight: 2
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINE_AREAS_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINE_AREAS_HORIZONTAL',
10
- description: '橫向折線圖',
9
+ description: 'Horizontal LineArea',
10
+ descriptionZh: '橫向折線區域圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,26 +26,23 @@ export const PRESET_LINE_AREAS_HORIZONTAL: PresetPartial<'grid', Partial<PresetG
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 100,
32
32
  left: 160
33
33
  },
34
34
  highlightTarget: 'series'
35
35
  },
36
36
  dataFormatter: {
37
- // grid: {
38
- valueAxis: {
39
- position: 'bottom'
40
- },
41
- groupAxis: {
42
- position: 'left',
43
- scalePadding: 0
44
- },
45
- // }
37
+ valueAxis: {
38
+ position: 'bottom'
39
+ },
40
+ groupAxis: {
41
+ position: 'left',
42
+ scalePadding: 0
43
+ },
46
44
  },
47
- allPluginParams: {
48
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
45
+ pluginParams: {
49
46
  Lines: {},
50
47
  LineAreas: {},
51
48
  Dots: {},
@@ -53,8 +50,6 @@ export const PRESET_LINE_AREAS_HORIZONTAL: PresetPartial<'grid', Partial<PresetG
53
50
  ValueAxis: {},
54
51
  GroupAux: {},
55
52
  GridLegend: {
56
- // position: 'bottom',
57
- // justify: 'center',
58
53
  placement: 'bottom',
59
54
  padding: 14,
60
55
  listRectHeight: 2
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINE_AREAS_LOOSE_TICKS: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINE_AREAS_LOOSE_TICKS',
10
- description: '寬鬆標籤',
9
+ description: 'Loose Ticks LineArea',
10
+ descriptionZh: '寬鬆標籤的折線區域圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,22 +26,19 @@ export const PRESET_LINE_AREAS_LOOSE_TICKS: PresetPartial<'grid', Partial<Preset
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 100,
32
32
  left: 80
33
33
  },
34
34
  highlightTarget: 'series'
35
35
  },
36
36
  dataFormatter: {
37
- // grid: {
38
- groupAxis: {
39
- scalePadding: 0
40
- }
41
- // }
37
+ groupAxis: {
38
+ scalePadding: 0
39
+ }
42
40
  },
43
- allPluginParams: {
44
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
41
+ pluginParams: {
45
42
  Lines: {},
46
43
  LineAreas: {},
47
44
  Dots: {},
@@ -51,8 +48,6 @@ export const PRESET_LINE_AREAS_LOOSE_TICKS: PresetPartial<'grid', Partial<Preset
51
48
  ValueAxis: {},
52
49
  GroupAux: {},
53
50
  GridLegend: {
54
- // position: 'bottom',
55
- // justify: 'center',
56
51
  placement: 'bottom',
57
52
  padding: 14,
58
53
  listRectHeight: 2
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINE_AREAS_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINE_AREAS_ROTATE_AXIS_LABEL',
10
- description: '傾斜標籤',
9
+ description: 'Rotate Axis Label LineArea',
10
+ descriptionZh: '傾斜標籤的折線區域圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,22 +26,19 @@ export const PRESET_LINE_AREAS_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 140,
32
32
  left: 80
33
33
  },
34
34
  highlightTarget: 'series'
35
35
  },
36
36
  dataFormatter: {
37
- // grid: {
38
- groupAxis: {
39
- scalePadding: 0
40
- }
41
- // }
37
+ groupAxis: {
38
+ scalePadding: 0
39
+ }
42
40
  },
43
- allPluginParams: {
44
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
41
+ pluginParams: {
45
42
  Lines: {},
46
43
  LineAreas: {},
47
44
  Dots: {},
@@ -54,8 +51,6 @@ export const PRESET_LINE_AREAS_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<
54
51
  labelRotate: -30
55
52
  },
56
53
  GridLegend: {
57
- // position: 'bottom',
58
- // justify: 'center',
59
54
  placement: 'bottom',
60
55
  padding: 14,
61
56
  listRectHeight: 2
@@ -2,12 +2,12 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetGridPluginParams,
3
3
  PresetNoneDataPluginParams
4
4
  } from '../types'
5
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
5
 
7
6
  export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
7
  & Partial<PresetNoneDataPluginParams>> = {
9
8
  name: 'PRESET_LINE_AREAS_SEPARATE_SERIES',
10
- description: 'LineAreas 分開顯示Series',
9
+ description: 'Separate Series LineArea',
10
+ descriptionZh: '分開顯示Series的折線區域圖',
11
11
  chartParams: {
12
12
  colors: {
13
13
  light: {
@@ -26,24 +26,20 @@ export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<Pr
26
26
  }
27
27
  },
28
28
  padding: {
29
- top: 60,
30
- right: 60,
29
+ top: 40,
30
+ right: 40,
31
31
  bottom: 140,
32
32
  left: 80
33
33
  },
34
34
  highlightTarget: 'series'
35
35
  },
36
36
  dataFormatter: {
37
- // grid: {
38
- // seriesSlotIndexes: [0, 1],
39
- separateSeries: true,
40
- groupAxis: {
41
- scalePadding: 0
42
- }
43
- // },
37
+ separateSeries: true,
38
+ groupAxis: {
39
+ scalePadding: 0
40
+ }
44
41
  },
45
- allPluginParams: {
46
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
42
+ pluginParams: {
47
43
  Lines: {},
48
44
  LineAreas: {},
49
45
  Dots: {},
@@ -56,8 +52,6 @@ export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<Pr
56
52
  labelRotate: -30
57
53
  },
58
54
  GridLegend: {
59
- // position: 'bottom',
60
- // justify: 'center',
61
55
  placement: 'bottom',
62
56
  padding: 14,
63
57
  listRectHeight: 2
@@ -0,0 +1,57 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+
6
+ export const PRESET_LINE_AREAS_SIMPLE: PresetPartial<'grid', Partial<PresetGridPluginParams>
7
+ & Partial<PresetNoneDataPluginParams>> = {
8
+ name: 'PRESET_LINE_AREAS_SIMPLE',
9
+ description: 'Simple LineArea',
10
+ descriptionZh: '簡單折線區域圖',
11
+ chartParams: {
12
+ colors: {
13
+ light: {
14
+ label: [
15
+ "#4BABFF",
16
+ "#FFA0A0",
17
+ "#7DD3C4",
18
+ "#F9B052",
19
+ "#8454D4",
20
+ "#42C724",
21
+ "#FF4B4B",
22
+ "#904026",
23
+ "#4B25B3",
24
+ "#C50669"
25
+ ],
26
+ }
27
+ },
28
+ padding: {
29
+ top: 40,
30
+ right: 40,
31
+ bottom: 80,
32
+ left: 40
33
+ },
34
+ highlightTarget: 'series'
35
+ },
36
+ dataFormatter: {
37
+ groupAxis: {
38
+ scalePadding: 0
39
+ },
40
+ valueAxis: {
41
+ scaleRange: [0, 0.95]
42
+ }
43
+ },
44
+ pluginParams: {
45
+ Lines: {},
46
+ LineAreas: {},
47
+ Dots: {},
48
+ GroupAxis: {},
49
+ ValueAxis: {},
50
+ GroupAux: {},
51
+ GridLegend: {
52
+ placement: 'bottom',
53
+ padding: 7,
54
+ listRectHeight: 2
55
+ }
56
+ }
57
+ }
package/src/grid/index.ts CHANGED
@@ -4,9 +4,11 @@ export { PRESET_BARS_ROUND } from './PRESET_BARS_ROUND'
4
4
  export { PRESET_BARS_THIN } from './PRESET_BARS_THIN'
5
5
  export { PRESET_GRID_BASIC } from './PRESET_GRID_BASIC'
6
6
  export { PRESET_GRID_HORIZONTAL } from './PRESET_GRID_HORIZONTAL'
7
+ export { PRESET_GRID_PN_SCALE_SIMPLE } from './PRESET_GRID_PN_SCALE_SIMPLE'
7
8
  export { PRESET_GRID_PN_SCALE } from './PRESET_GRID_PN_SCALE'
8
9
  export { PRESET_GRID_ROTATE_AXIS_LABEL } from './PRESET_GRID_ROTATE_AXIS_LABEL'
9
10
  export { PRESET_GRID_SEPARATE_SERIES } from './PRESET_GRID_SEPARATE_SERIES'
11
+ export { PRESET_GRID_SIMPLE } from './PRESET_GRID_SIMPLE'
10
12
  export { PRESET_LINE_AREAS_BASIC } from './PRESET_LINE_AREAS_BASIC'
11
13
  export { PRESET_LINE_AREAS_CURVE } from './PRESET_LINE_AREAS_CURVE'
12
14
  // export { PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS } from './PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS'
@@ -14,10 +16,12 @@ export { PRESET_LINE_AREAS_HORIZONTAL } from './PRESET_LINE_AREAS_HORIZONTAL'
14
16
  export { PRESET_LINE_AREAS_LOOSE_TICKS } from './PRESET_LINE_AREAS_LOOSE_TICKS'
15
17
  export { PRESET_LINE_AREAS_ROTATE_AXIS_LABEL } from './PRESET_LINE_AREAS_ROTATE_AXIS_LABEL'
16
18
  export { PRESET_LINE_AREAS_SEPARATE_SERIES } from './PRESET_LINE_AREAS_SEPARATE_SERIES'
19
+ export { PRESET_LINE_AREAS_SIMPLE } from './PRESET_LINE_AREAS_SIMPLE'
17
20
  export { PRESET_LINES_BASIC } from './PRESET_LINES_BASIC'
18
21
  export { PRESET_LINES_CURVE } from './PRESET_LINES_CURVE'
19
22
  // export { PRESET_LINES_HIGHLIGHT_GROUP_DOTS } from './PRESET_LINES_HIGHLIGHT_GROUP_DOTS'
20
23
  export { PRESET_LINES_HORIZONTAL } from './PRESET_LINES_HORIZONTAL'
21
24
  export { PRESET_LINES_LOOSE_TICKS } from './PRESET_LINES_LOOSE_TICKS'
22
25
  export { PRESET_LINES_ROTATE_AXIS_LABEL } from './PRESET_LINES_ROTATE_AXIS_LABEL'
26
+ export { PRESET_LINES_SIMPLE } from './PRESET_LINES_SIMPLE'
23
27
  export { PRESET_LINES_WITH_SOLID_DOTS } from './PRESET_LINES_WITH_SOLID_DOTS'