@orbcharts/plugins-basic 3.0.0-alpha.51 → 3.0.0-alpha.53
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/orbcharts-plugins-basic.es.js +6763 -6809
- package/dist/orbcharts-plugins-basic.umd.js +9 -9
- package/dist/src/multiGrid/defaults.d.ts +2 -1
- package/dist/src/multiGrid/plugins/OverlappingValueStackAxes.d.ts +1 -1
- package/dist/src/multiGrid/types.d.ts +2 -0
- package/package.json +2 -2
- package/src/base/BaseGroupAxis.ts +1 -5
- package/src/base/BaseLineAreas.ts +4 -4
- package/src/grid/plugins/GroupAux.ts +432 -155
- package/src/multiGrid/defaults.ts +7 -1
- package/src/multiGrid/plugins/OverlappingValueStackAxes.ts +2 -2
- package/src/multiGrid/types.ts +2 -0
@@ -9,7 +9,8 @@ import type {
|
|
9
9
|
MultiGroupAxisParams,
|
10
10
|
MultiValueAxisParams,
|
11
11
|
MultiValueStackAxisParams,
|
12
|
-
OverlappingValueAxesParams
|
12
|
+
OverlappingValueAxesParams,
|
13
|
+
OverlappingValueStackAxesParams
|
13
14
|
} from './types'
|
14
15
|
|
15
16
|
export const DEFAULT_MULTI_GRID_LEGEND_PARAMS: MultiGridLegendParams = {
|
@@ -38,6 +39,7 @@ export const DEFAULT_MULTI_GROUP_AXIS_PARAMS: MultiGroupAxisParams = {
|
|
38
39
|
labelColorType: 'primary',
|
39
40
|
axisLineVisible: true,
|
40
41
|
axisLineColorType: 'primary',
|
42
|
+
ticks: 'all',
|
41
43
|
tickFormat: text => text,
|
42
44
|
tickLineVisible: true,
|
43
45
|
tickPadding: 20,
|
@@ -150,3 +152,7 @@ export const DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS: OverlappingValueAxesParams =
|
|
150
152
|
},
|
151
153
|
gridIndexes: [0, 1]
|
152
154
|
}
|
155
|
+
|
156
|
+
export const DEFAULT_OVERLAPPING_VALUE_STACK_AXES_PARAMS: OverlappingValueStackAxesParams = {
|
157
|
+
...DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS
|
158
|
+
}
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
import type { ContextObserverMultiGrid, DataFormatterGrid, DataFormatterTypeMap, Layout } from '@orbcharts/core'
|
14
14
|
import {
|
15
15
|
defineMultiGridPlugin } from '@orbcharts/core'
|
16
|
-
import {
|
16
|
+
import { DEFAULT_OVERLAPPING_VALUE_STACK_AXES_PARAMS } from '../defaults'
|
17
17
|
import { createBaseValueAxis } from '../../base/BaseValueAxis'
|
18
18
|
import { multiGridPluginDetailObservables } from '../multiGridObservables'
|
19
19
|
import { getClassName, getUniID } from '../../utils/orbchartsUtils'
|
@@ -24,7 +24,7 @@ const pluginName = 'OverlappingValueStackAxes'
|
|
24
24
|
const gridClassName = getClassName(pluginName, 'grid')
|
25
25
|
|
26
26
|
// 第一個圖軸使用堆疊的資料,第二個圖軸使用原始資料
|
27
|
-
export const OverlappingValueStackAxes = defineMultiGridPlugin(pluginName,
|
27
|
+
export const OverlappingValueStackAxes = defineMultiGridPlugin(pluginName, DEFAULT_OVERLAPPING_VALUE_STACK_AXES_PARAMS)(({ selection, name, subject, observer }) => {
|
28
28
|
const destroy$ = new Subject()
|
29
29
|
|
30
30
|
const unsubscribeFnArr: (() => void)[] = []
|