@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.
@@ -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 { DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS } from '../defaults'
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, DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS)(({ selection, name, subject, observer }) => {
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)[] = []
@@ -69,3 +69,5 @@ export interface OverlappingValueAxesParams {
69
69
  secondAxis: BaseValueAxisParams
70
70
  gridIndexes: [number, number]
71
71
  }
72
+
73
+ export interface OverlappingValueStackAxesParams extends OverlappingValueAxesParams {}