@orbcharts/presets-basic 3.0.0-alpha.1 → 3.0.0-alpha.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/dist/orbcharts-presets-basic.es.js +789 -129
  2. package/dist/orbcharts-presets-basic.umd.js +1 -1
  3. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +3 -0
  4. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +3 -0
  5. package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +3 -0
  6. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +3 -0
  7. package/dist/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.d.ts +3 -0
  8. package/dist/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +3 -0
  9. package/dist/src/chartParamsFiles/index.d.ts +6 -0
  10. package/dist/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.d.ts +3 -0
  11. package/dist/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.d.ts +3 -0
  12. package/dist/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.d.ts +3 -0
  13. package/dist/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.d.ts +3 -0
  14. package/dist/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.d.ts +3 -0
  15. package/dist/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.d.ts +3 -0
  16. package/dist/src/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.d.ts +3 -0
  17. package/dist/src/gridDataFormatterFiles/index.d.ts +7 -1
  18. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.d.ts +4 -0
  19. package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +1 -0
  20. package/dist/src/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.d.ts +4 -0
  21. package/dist/src/gridPluginParamsFiles/LineAreas/index.d.ts +1 -0
  22. package/dist/src/gridPluginParamsFiles/index.d.ts +1 -0
  23. package/dist/src/index.d.ts +25 -0
  24. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.d.ts +3 -0
  25. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.d.ts +3 -0
  26. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.d.ts +3 -0
  27. package/dist/src/multiGridDataFormatterFiles/index.d.ts +3 -1
  28. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.d.ts +4 -0
  29. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.d.ts +4 -0
  30. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.d.ts +4 -0
  31. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/index.d.ts +3 -0
  32. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.d.ts +4 -0
  33. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.d.ts +4 -0
  34. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.d.ts +4 -0
  35. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.d.ts +4 -0
  36. package/dist/src/multiGridPluginParamsFiles/MultiBars/index.d.ts +4 -0
  37. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.d.ts +4 -0
  38. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.d.ts +4 -0
  39. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.d.ts +4 -0
  40. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.d.ts +3 -0
  41. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.d.ts +4 -0
  42. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +4 -0
  43. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.d.ts +4 -0
  44. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.d.ts +4 -0
  45. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/index.d.ts +4 -0
  46. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.d.ts +4 -0
  47. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.d.ts +4 -0
  48. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.d.ts +4 -0
  49. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/index.d.ts +3 -0
  50. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.d.ts +4 -0
  51. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.d.ts +4 -0
  52. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.d.ts +4 -0
  53. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.d.ts +4 -0
  54. package/dist/src/multiGridPluginParamsFiles/MultiLines/index.d.ts +4 -0
  55. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.d.ts +4 -0
  56. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.d.ts +4 -0
  57. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.d.ts +4 -0
  58. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/index.d.ts +3 -0
  59. package/dist/src/multiGridPluginParamsFiles/index.d.ts +7 -1
  60. package/dist/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.d.ts +4 -0
  61. package/dist/src/treePluginParamsFiles/TreeLegend/index.d.ts +1 -0
  62. package/dist/src/treePluginParamsFiles/index.d.ts +1 -1
  63. package/dist/src/types.d.ts +6 -2
  64. package/package.json +3 -3
  65. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +14 -0
  66. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +15 -0
  67. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +1 -1
  68. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +15 -0
  69. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +15 -0
  70. package/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.ts +14 -0
  71. package/src/chartParamsFiles/CP_LEFT_PADDING.ts +2 -2
  72. package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +1 -1
  73. package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +14 -0
  74. package/src/chartParamsFiles/index.ts +6 -0
  75. package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +16 -0
  76. package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +16 -0
  77. package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +16 -0
  78. package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +23 -0
  79. package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.ts +18 -0
  80. package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +15 -0
  81. package/src/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.ts +14 -0
  82. package/src/gridDataFormatterFiles/index.ts +7 -1
  83. package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -2
  84. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +15 -0
  85. package/src/gridPluginParamsFiles/GridLegend/index.ts +1 -0
  86. package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +2 -1
  87. package/src/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.ts +12 -0
  88. package/src/gridPluginParamsFiles/LineAreas/index.ts +1 -0
  89. package/src/gridPluginParamsFiles/index.ts +1 -0
  90. package/src/index.ts +169 -18
  91. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +21 -0
  92. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +24 -0
  93. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +27 -0
  94. package/src/multiGridDataFormatterFiles/index.ts +3 -1
  95. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +12 -0
  96. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +12 -0
  97. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +12 -0
  98. package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +4 -0
  99. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +12 -0
  100. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +12 -0
  101. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +12 -0
  102. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +15 -0
  103. package/src/multiGridPluginParamsFiles/MultiBars/index.ts +5 -0
  104. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +12 -0
  105. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +12 -0
  106. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +12 -0
  107. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +3 -0
  108. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +14 -0
  109. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +28 -0
  110. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +21 -0
  111. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +22 -0
  112. package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +4 -0
  113. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +13 -0
  114. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +13 -0
  115. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +13 -0
  116. package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +3 -0
  117. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +12 -0
  118. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +12 -0
  119. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +12 -0
  120. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +13 -0
  121. package/src/multiGridPluginParamsFiles/MultiLines/index.ts +4 -0
  122. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +12 -0
  123. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +12 -0
  124. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +12 -0
  125. package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +3 -0
  126. package/src/multiGridPluginParamsFiles/index.ts +7 -1
  127. package/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.ts +14 -0
  128. package/src/treePluginParamsFiles/TreeLegend/index.ts +1 -0
  129. package/src/treePluginParamsFiles/index.ts +1 -1
  130. package/src/types.ts +5 -2
  131. package/tsconfig.dev.json +18 -0
  132. package/tsconfig.prod.json +14 -0
  133. package/dist/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.d.ts +0 -3
  134. package/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.ts +0 -16
@@ -0,0 +1,15 @@
1
+ import type { ChartParamsFile } from '../types'
2
+
3
+ export const CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT: ChartParamsFile = {
4
+ id: 'CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT',
5
+ description: '間距下面留空及highlight系列',
6
+ data: {
7
+ padding: {
8
+ top: 60,
9
+ right: 60,
10
+ bottom: 120,
11
+ left: 60
12
+ },
13
+ highlightTarget: 'series'
14
+ }
15
+ }
@@ -0,0 +1,14 @@
1
+ import type { ChartParamsFile } from '../types'
2
+
3
+ export const CP_BOTTOM_SLIGHT_PADDING: ChartParamsFile = {
4
+ id: 'CP_BOTTOM_SLIGHT_PADDING',
5
+ description: '間距下面些微留空',
6
+ data: {
7
+ padding: {
8
+ top: 40,
9
+ right: 40,
10
+ bottom: 60,
11
+ left: 40
12
+ },
13
+ }
14
+ }
@@ -2,13 +2,13 @@ import type { ChartParamsFile } from '../types'
2
2
 
3
3
  export const CP_LEFT_PADDING: ChartParamsFile = {
4
4
  id: 'CP_LEFT_PADDING',
5
- description: '間距右邊留空',
5
+ description: '間距左邊留空',
6
6
  data: {
7
7
  padding: {
8
8
  top: 60,
9
9
  right: 60,
10
10
  bottom: 60,
11
- left: 180
11
+ left: 160
12
12
  },
13
13
  }
14
14
  }
@@ -6,7 +6,7 @@ export const CP_RIGHT_PADDING: ChartParamsFile = {
6
6
  data: {
7
7
  padding: {
8
8
  top: 60,
9
- right: 180,
9
+ right: 120,
10
10
  bottom: 60,
11
11
  left: 60
12
12
  },
@@ -0,0 +1,14 @@
1
+ import type { ChartParamsFile } from '../types'
2
+
3
+ export const CP_TOP_AND_NO_BOTTOM_PADDING: ChartParamsFile = {
4
+ id: 'CP_TOP_AND_NO_BOTTOM_PADDING',
5
+ description: '間距上面留空下面不留空',
6
+ data: {
7
+ padding: {
8
+ top: 120,
9
+ right: 120,
10
+ bottom: 0,
11
+ left: 60
12
+ },
13
+ }
14
+ }
@@ -1,5 +1,11 @@
1
+ export { CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT } from './CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT'
2
+ export { CP_BOTTOM_AND_LEFT_PADDING } from './CP_BOTTOM_AND_LEFT_PADDING'
1
3
  export { CP_BOTTOM_LONG_PADDING } from './CP_BOTTOM_LONG_PADDING'
4
+ export { CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT } from './CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT'
2
5
  export { CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT } from './CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT'
6
+ export { CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT } from './CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT'
3
7
  export { CP_BOTTOM_PADDING } from './CP_BOTTOM_PADDING'
8
+ export { CP_BOTTOM_SLIGHT_PADDING } from './CP_BOTTOM_SLIGHT_PADDING'
4
9
  export { CP_LEFT_PADDING } from './CP_LEFT_PADDING'
10
+ export { CP_TOP_AND_NO_BOTTOM_PADDING } from './CP_TOP_AND_NO_BOTTOM_PADDING'
5
11
  export { CP_RIGHT_PADDING } from './CP_RIGHT_PADDING'
@@ -0,0 +1,16 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_2_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_2_SERIES_SLOT',
5
+ chartType: 'grid',
6
+ description: '2個Series Slot',
7
+ data: {
8
+ grid: {
9
+ seriesSlotIndexes: [0, 1],
10
+ },
11
+ container: {
12
+ rowAmount: 1,
13
+ columnAmount: 2,
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,16 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_3_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_3_SERIES_SLOT',
5
+ chartType: 'grid',
6
+ description: '3個Series Slot',
7
+ data: {
8
+ grid: {
9
+ seriesSlotIndexes: [0, 1, 2],
10
+ },
11
+ container: {
12
+ rowAmount: 1,
13
+ columnAmount: 3,
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,16 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_4_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_4_SERIES_SLOT',
5
+ chartType: 'grid',
6
+ description: '4個Series Slot',
7
+ data: {
8
+ grid: {
9
+ seriesSlotIndexes: [0, 1, 2, 3],
10
+ },
11
+ container: {
12
+ rowAmount: 2,
13
+ columnAmount: 2,
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,23 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_BOTTOM_VALUE_AXIS: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_BOTTOM_VALUE_AXIS',
5
+ chartType: 'grid',
6
+ description: '底部橫向資料圖軸',
7
+ data: {
8
+ grid: {
9
+ valueAxis: {
10
+ position: 'bottom'
11
+ // position: 'top'
12
+ // position: 'left'
13
+ // position: 'right'
14
+ },
15
+ groupAxis: {
16
+ position: 'left'
17
+ // position: 'right'
18
+ // position: 'bottom'
19
+ // position: 'top'
20
+ },
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,18 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING',
5
+ chartType: 'grid',
6
+ description: '底部橫向資料圖軸及無群組圖軸的左右間距',
7
+ data: {
8
+ grid: {
9
+ valueAxis: {
10
+ position: 'bottom'
11
+ },
12
+ groupAxis: {
13
+ position: 'left',
14
+ scalePadding: 0
15
+ },
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,15 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_DIVERGING_SCALE: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_DIVERGING_SCALE',
5
+ chartType: 'grid',
6
+ description: '分向資料圖軸',
7
+ data: {
8
+ grid: {
9
+ valueAxis: {
10
+ scaleDomain: ['auto', 'auto'],
11
+ scaleRange: [0.05, 0.95],
12
+ },
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,14 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_NONE_GROUP_SCALE_PADDING: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
5
+ chartType: 'grid',
6
+ description: '無群組圖軸的左右間距',
7
+ data: {
8
+ grid: {
9
+ groupAxis: {
10
+ scalePadding: 0
11
+ }
12
+ }
13
+ }
14
+ }
@@ -1 +1,7 @@
1
- export { DF_BOTTOM_VALUE_AXIS } from './DF_BOTTOM_VALUE_AXIS'
1
+ export { DF_GRID_BOTTOM_VALUE_AXIS } from './DF_GRID_BOTTOM_VALUE_AXIS'
2
+ export { DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING } from './DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING'
3
+ export { DF_GRID_2_SERIES_SLOT } from './DF_GRID_2_SERIES_SLOT'
4
+ export { DF_GRID_3_SERIES_SLOT } from './DF_GRID_3_SERIES_SLOT'
5
+ export { DF_GRID_4_SERIES_SLOT } from './DF_GRID_4_SERIES_SLOT'
6
+ export { DF_GRID_DIVERGING_SCALE } from './DF_GRID_DIVERGING_SCALE'
7
+ export { DF_GRID_NONE_GROUP_SCALE_PADDING } from './DF_GRID_NONE_GROUP_SCALE_PADDING'
@@ -7,8 +7,6 @@ export const PP_DOTS_ONLY_SHOW_HIGHLIGHTED: PluginParamsFile<DotsParams> = {
7
7
  pluginName: 'Dots',
8
8
  description: '顯示highlight圓點',
9
9
  data: {
10
- radius: 3,
11
- fillColorType: 'series',
12
10
  onlyShowHighlighted: false
13
11
  }
14
12
  }
@@ -0,0 +1,15 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { GridLegendParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST: PluginParamsFile<GridLegendParams> = {
5
+ id: 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST',
6
+ chartType: 'grid',
7
+ pluginName: 'GridLegend',
8
+ description: '底部圖例及圓弧列點',
9
+ data: {
10
+ position: 'bottom',
11
+ justify: 'center',
12
+ padding: 14,
13
+ listRectRadius: 7,
14
+ }
15
+ }
@@ -1,2 +1,3 @@
1
1
  export { PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST } from './PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'
2
+ export { PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST } from './PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'
2
3
  export { PP_GRID_LEGEND_BOTTOM } from './PP_GRID_LEGEND_BOTTOM'
@@ -7,6 +7,7 @@ export const PP_GROUP_AXIS_ROTATE_LABEL: PluginParamsFile<GroupAxisParams> = {
7
7
  pluginName: 'GroupAxis',
8
8
  description: '群組圖軸標籤文字傾斜',
9
9
  data: {
10
- tickTextRotate: 40
10
+ tickPadding: 15,
11
+ tickTextRotate: -30
11
12
  }
12
13
  }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { LineAreasParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_LINE_AREAS_CURVE: PluginParamsFile<LineAreasParams> = {
5
+ id: 'PP_LINE_AREAS_CURVE',
6
+ chartType: 'grid',
7
+ pluginName: 'LineAreas',
8
+ description: '圓弧折線圖',
9
+ data: {
10
+ lineCurve: 'curveMonotoneX',
11
+ }
12
+ }
@@ -0,0 +1 @@
1
+ export { PP_LINE_AREAS_CURVE } from './PP_LINE_AREAS_CURVE'
@@ -3,4 +3,5 @@ export * from './Dots'
3
3
  export * from './GridLegend'
4
4
  export * from './GroupAxis'
5
5
  export * from './Lines'
6
+ export * from './LineAreas'
6
7
  // export * from './ValueAxis'
package/src/index.ts CHANGED
@@ -14,12 +14,22 @@ export const PRESET_SERIES_BASIC = createSeriesPreset({
14
14
  description: '基本Series參數'
15
15
  })
16
16
  // Bubbles - PRESET_BUBBLES_[name]
17
+ export const PRESET_BUBBLES_BASIC = createSeriesPreset({
18
+ // chartParamsId: 'CP_RIGHT_PADDING',
19
+ allPluginParamsIds: ['PP_SERIES_LEGEND_ROUND'],
20
+ description: '基本泡泡圖'
21
+ })
17
22
  export const PRESET_BUBBLES_SCALING_BY_RADIUS = createSeriesPreset({
18
23
  // chartParamsId: 'CP_RIGHT_PADDING',
19
24
  allPluginParamsIds: ['PP_BUBBLES_SCALING_BY_RADIUS', 'PP_SERIES_LEGEND_ROUND'],
20
25
  description: '以半徑尺寸為比例的泡泡圖'
21
26
  })
22
27
  // Pie - PRESET_PIE_[name]
28
+ export const PRESET_PIE_BASIC = createSeriesPreset({
29
+ // chartParamsId: 'CP_RIGHT_PADDING',
30
+ allPluginParamsIds: ['PP_SERIES_LEGEND_ROUND'],
31
+ description: '基本圓餅圖'
32
+ })
23
33
  export const PRESET_PIE_WITH_INNER_LABELS = createSeriesPreset({
24
34
  // chartParamsId: 'CP_RIGHT_PADDING',
25
35
  allPluginParamsIds: ['PP_PIE_LABELS_INNER', 'PP_SERIES_LEGEND_ROUND'],
@@ -31,7 +41,7 @@ export const PRESET_PIE_DONUT = createSeriesPreset({
31
41
  description: '甜甜圈圖'
32
42
  })
33
43
  export const PRESET_PIE_HALF_DONUT = createSeriesPreset({
34
- // chartParamsId: 'CP_RIGHT_PADDING',
44
+ chartParamsId: 'CP_TOP_AND_NO_BOTTOM_PADDING',
35
45
  allPluginParamsIds: ['PP_PIE_HALF_DONUT', 'PP_PIE_LABELS_HALF_ANGLE', 'PP_SERIES_LEGEND_ROUND'],
36
46
  description: '半圓甜甜圈圖'
37
47
  })
@@ -39,26 +49,55 @@ export const PRESET_PIE_HALF_DONUT = createSeriesPreset({
39
49
  // -- grid --
40
50
  // 通用 - PRESET_GRID_[name]
41
51
  export const PRESET_GRID_BASIC = createGridPreset({
42
- chartParamsId: 'CP_BOTTOM_LONG_PADDING',
52
+ chartParamsId: 'CP_BOTTOM_PADDING',
43
53
  allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
44
54
  description: '基本Grid參數'
45
55
  })
46
56
  export const PRESET_GRID_ROTATE_AXIS_LABEL = createGridPreset({
47
- chartParamsId: 'CP_BOTTOM_PADDING',
57
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
48
58
  allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
49
59
  description: '傾斜標籤'
50
60
  })
61
+ export const PRESET_GRID_HORIZONTAL = createGridPreset({
62
+ chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
63
+ dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
64
+ allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
65
+ description: '橫向圖'
66
+ })
67
+ export const PRESET_GRID_DIVERGING_SCALE = createGridPreset({
68
+ chartParamsId: 'CP_BOTTOM_PADDING',
69
+ dataFormatterId: 'DF_GRID_DIVERGING_SCALE',
70
+ allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
71
+ description: '正負值分向圖'
72
+ })
73
+ export const PRESET_GRID_2_SERIES_SLOT = createGridPreset({
74
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
75
+ dataFormatterId: 'DF_GRID_2_SERIES_SLOT',
76
+ allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
77
+ description: '2組Series圖表'
78
+ })
79
+ export const PRESET_GRID_3_SERIES_SLOT = createGridPreset({
80
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
81
+ dataFormatterId: 'DF_GRID_3_SERIES_SLOT',
82
+ allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM', 'PP_GROUP_AXIS_ROTATE_LABEL'],
83
+ description: '3組Series圖表'
84
+ })
85
+ export const PRESET_GRID_4_SERIES_SLOT = createGridPreset({
86
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
87
+ dataFormatterId: 'DF_GRID_4_SERIES_SLOT',
88
+ allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
89
+ description: '4組Series圖表'
90
+ })
51
91
  // Bars - PRESET_BARS_[name]
52
92
  export const PRESET_BARS_ROUND = createGridPreset({
53
93
  chartParamsId: 'CP_BOTTOM_PADDING',
54
- allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM'],
94
+ allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
55
95
  description: '圓角長條圖'
56
96
  })
57
- console.log(PRESET_BARS_ROUND)
58
97
  export const PRESET_BARS_HORIZONTAL_AND_ROUND = createGridPreset({
59
- chartParamsId: 'CP_BOTTOM_PADDING',
60
- dataFormatterId: 'DF_BOTTOM_VALUE_AXIS',
61
- allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM'],
98
+ chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
99
+ dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
100
+ allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
62
101
  description: '橫向圓角長條圖'
63
102
  })
64
103
  export const PRESET_BARS_THIN = createGridPreset({
@@ -66,25 +105,41 @@ export const PRESET_BARS_THIN = createGridPreset({
66
105
  allPluginParamsIds: ['PP_BARS_THIN', 'PP_GRID_LEGEND_BOTTOM'],
67
106
  description: '細長條圖'
68
107
  })
69
- // export const PRESET_BARS_HORIZONTAL_AND_THIN = createGridPreset({
70
- // chartParamsId: 'CP_BOTTOM_PADDING',
71
- // dataFormatterId: 'DF_BOTTOM_VALUE_AXIS',
72
- // allPluginParamsIds: ['PP_BARS_THIN', 'PP_GRID_LEGEND_BOTTOM'],
73
- // description: '橫向細長條圖'
74
- // })
108
+ export const PRESET_BARS_HORIZONTAL_AND_THIN = createGridPreset({
109
+ chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
110
+ dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
111
+ allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
112
+ description: '橫向圓角長條圖'
113
+ })
75
114
  // Lines - PRESET_LINES_[name]
115
+ export const PRESET_LINES_BASIC = createGridPreset({
116
+ chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
117
+ allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
118
+ description: '基本Grid參數'
119
+ })
120
+ export const PRESET_LINES_ROTATE_AXIS_LABEL = createGridPreset({
121
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT',
122
+ allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
123
+ description: '傾斜標籤'
124
+ })
125
+ export const PRESET_LINES_HORIZONTAL = createGridPreset({
126
+ chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT',
127
+ dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
128
+ allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
129
+ description: '橫向折線圖'
130
+ })
76
131
  // export const PRESET_LINES_WITH_SOLID_DOTS = createGridPreset({
77
- // chartParamsId: 'CP_BOTTOM_PADDING',
132
+ // chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
78
133
  // allPluginParamsIds: ['PP_DOTS_SOLID', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
79
134
  // description: '折線圖及實心圓點'
80
135
  // })
81
136
  export const PRESET_LINES_CURVE = createGridPreset({
82
- chartParamsId: 'CP_BOTTOM_PADDING',
137
+ chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
83
138
  allPluginParamsIds: ['PP_LINES_CURVE', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
84
139
  description: '弧線折線圖'
85
140
  })
86
141
  // export const PRESET_LINES_CURVES_WITH_SOLID_DOTS = createGridPreset({
87
- // chartParamsId: 'CP_BOTTOM_PADDING',
142
+ // chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
88
143
  // allPluginParamsIds: ['PP_LINES_CURVE', 'PP_DOTS_SOLID', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
89
144
  // description: '弧線折線圖及實心圓點'
90
145
  // })
@@ -93,11 +148,107 @@ export const PRESET_LINES_HIGHLIGHT_GROUP_DOTS = createGridPreset({
93
148
  allPluginParamsIds: ['PP_DOTS_ONLY_SHOW_HIGHLIGHTED', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
94
149
  description: '折線圖及Highlight Group圓點'
95
150
  })
151
+ // LineAreas - PRESET_LINE_AREAS_[name]
152
+ export const PRESET_LINE_AREAS_BASIC = createGridPreset({
153
+ chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
154
+ dataFormatterId: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
155
+ allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
156
+ description: '基本Grid參數'
157
+ })
158
+ export const PRESET_LINE_AREAS_ROTATE_AXIS_LABEL = createGridPreset({
159
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT',
160
+ dataFormatterId: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
161
+ allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
162
+ description: '傾斜標籤'
163
+ })
164
+ export const PRESET_LINE_AREAS_HORIZONTAL = createGridPreset({
165
+ chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT',
166
+ dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING',
167
+ allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
168
+ description: '橫向折線圖'
169
+ })
170
+ export const PRESET_LINE_AREAS_CURVE = createGridPreset({
171
+ chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
172
+ dataFormatterId: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
173
+ allPluginParamsIds: ['PP_LINES_CURVE', 'PP_LINE_AREAS_CURVE', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
174
+ description: '弧線折線圖'
175
+ })
176
+ export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS = createGridPreset({
177
+ chartParamsId: 'CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT',
178
+ dataFormatterId: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
179
+ allPluginParamsIds: ['PP_DOTS_ONLY_SHOW_HIGHLIGHTED', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
180
+ description: '折線圖及Highlight Group圓點'
181
+ })
182
+
96
183
  // -- multi-grid --
184
+ // 通用 - PRESET_MULTI_GRID_[name]
185
+ export const PRESET_MULTI_GRID_BASIC = createMultiGridPreset({
186
+ chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
187
+ allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST'],
188
+ description: '基本MultiGrid參數'
189
+ })
190
+ export const PRESET_MULTI_GRID_ROUND_STYLE = createMultiGridPreset({
191
+ chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
192
+ allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST', 'PP_MULTI_BARS_ROUND', 'PP_MULTI_LINES_CURVE'],
193
+ description: 'MultiGrid圓弧風格'
194
+ })
195
+ export const PRESET_MULTI_GRID_2_GRID_SLOT = createMultiGridPreset({
196
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
197
+ dataFormatterId: 'DF_MULTI_GRID_2_GRID_SLOT',
198
+ allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT', 'PP_MULTI_BARS_2_GRID_SLOT', 'PP_MULTI_BAR_STACK_2_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT', 'PP_MULTI_LINES_2_GRID_SLOT'],
199
+ description: '2組Grid圖表'
200
+ })
201
+ export const PRESET_MULTI_GRID_3_GRID_SLOT = createMultiGridPreset({
202
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
203
+ dataFormatterId: 'DF_MULTI_GRID_3_GRID_SLOT',
204
+ allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT', 'PP_MULTI_BARS_3_GRID_SLOT', 'PP_MULTI_BAR_STACK_3_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT', 'PP_MULTI_LINES_3_GRID_SLOT'],
205
+ description: '3組Grid圖表'
206
+ })
207
+ export const PRESET_MULTI_GRID_4_GRID_SLOT = createMultiGridPreset({
208
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
209
+ dataFormatterId: 'DF_MULTI_GRID_4_GRID_SLOT',
210
+ allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT'],
211
+ description: '4組Grid圖表'
212
+ })
213
+ // // MultiBars, MultiLines - PRESET_MULTI_BARS_MULTI_LINES_[name]
214
+ // export const PRESET_MULTI_BARS_MULTI_LINES_BASIC = createMultiGridPreset({
215
+ // chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
216
+ // allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST'],
217
+ // description: '基本MultiGrid參數'
218
+ // })
219
+ // MultiLines - PRESET_MULTI_LINES_[name]
220
+ // export const PRESET_MULTI_LINES_BASIC = createMultiGridPreset({
221
+ // chartParamsId: 'CP_BOTTOM_PADDING',
222
+ // allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
223
+ // description: '基本MultiGrid參數'
224
+ // })
225
+ export const PRESET_MULTI_LINES_2_GRID_SLOT = createMultiGridPreset({
226
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
227
+ dataFormatterId: 'DF_MULTI_GRID_2_GRID_SLOT',
228
+ allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT', 'PP_MULTI_BARS_2_GRID_SLOT', 'PP_MULTI_BAR_STACK_2_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT', 'PP_MULTI_LINES_2_GRID_SLOT'],
229
+ description: '2組折線圖表'
230
+ })
231
+ export const PRESET_MULTI_LINES_3_GRID_SLOT = createMultiGridPreset({
232
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
233
+ dataFormatterId: 'DF_MULTI_GRID_3_GRID_SLOT',
234
+ allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT', 'PP_MULTI_BARS_3_GRID_SLOT', 'PP_MULTI_BAR_STACK_3_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT', 'PP_MULTI_LINES_3_GRID_SLOT'],
235
+ description: '3組折線圖表'
236
+ })
237
+ export const PRESET_MULTI_LINES_4_GRID_SLOT = createMultiGridPreset({
238
+ chartParamsId: 'CP_BOTTOM_LONG_PADDING',
239
+ dataFormatterId: 'DF_MULTI_GRID_4_GRID_SLOT',
240
+ allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT'],
241
+ description: '4組折線圖表'
242
+ })
97
243
 
98
244
  // -- multi-value --
99
245
 
100
246
  // -- relationship --
101
247
 
102
248
  // -- tree --
103
-
249
+ // 通用 - PRESET_TREE_[name]
250
+ export const PRESET_TREE_BASIC = createTreePreset({
251
+ chartParamsId: 'CP_BOTTOM_SLIGHT_PADDING',
252
+ allPluginParamsIds: ['PP_TREE_LEGEND_BOTTOM'],
253
+ description: '基本Tree參數'
254
+ })
@@ -0,0 +1,21 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_MULTI_GRID_2_GRID_SLOT: DataFormatterFile<'multiGrid'> = {
4
+ id: 'DF_MULTI_GRID_2_GRID_SLOT',
5
+ chartType: 'multiGrid',
6
+ description: '2個Grid Slot',
7
+ data: {
8
+ gridList: [
9
+ {
10
+ // slotIndex: 0
11
+ },
12
+ {
13
+ slotIndex: 1
14
+ }
15
+ ],
16
+ container: {
17
+ rowAmount: 1,
18
+ columnAmount: 2,
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,24 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_MULTI_GRID_3_GRID_SLOT: DataFormatterFile<'multiGrid'> = {
4
+ id: 'DF_MULTI_GRID_3_GRID_SLOT',
5
+ chartType: 'multiGrid',
6
+ description: '3個Grid Slot',
7
+ data: {
8
+ gridList: [
9
+ {
10
+ slotIndex: 0
11
+ },
12
+ {
13
+ slotIndex: 1
14
+ },
15
+ {
16
+ slotIndex: 2
17
+ }
18
+ ],
19
+ container: {
20
+ rowAmount: 1,
21
+ columnAmount: 3,
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,27 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_MULTI_GRID_4_GRID_SLOT: DataFormatterFile<'multiGrid'> = {
4
+ id: 'DF_MULTI_GRID_4_GRID_SLOT',
5
+ chartType: 'multiGrid',
6
+ description: '4個Grid Slot',
7
+ data: {
8
+ gridList: [
9
+ {
10
+ slotIndex: 0
11
+ },
12
+ {
13
+ slotIndex: 1
14
+ },
15
+ {
16
+ slotIndex: 2
17
+ },
18
+ {
19
+ slotIndex: 3
20
+ }
21
+ ],
22
+ container: {
23
+ rowAmount: 2,
24
+ columnAmount: 2,
25
+ }
26
+ }
27
+ }
@@ -1 +1,3 @@
1
- export const temp = {}
1
+ export { DF_MULTI_GRID_2_GRID_SLOT } from './DF_MULTI_GRID_2_GRID_SLOT'
2
+ export { DF_MULTI_GRID_3_GRID_SLOT } from './DF_MULTI_GRID_3_GRID_SLOT'
3
+ export { DF_MULTI_GRID_4_GRID_SLOT } from './DF_MULTI_GRID_4_GRID_SLOT'
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BAR_STACK_2_GRID_SLOT: PluginParamsFile<MultiBarsParams> = {
5
+ id: 'PP_MULTI_BAR_STACK_2_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBarStack',
8
+ description: '2組堆疊長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BAR_STACK_3_GRID_SLOT: PluginParamsFile<MultiBarsParams> = {
5
+ id: 'PP_MULTI_BAR_STACK_3_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBarStack',
8
+ description: '3組堆疊長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1, 2]
11
+ }
12
+ }