Skip to main content

YDomainBase

@elastic/charts • Exports


@elastic/charts / YDomainBase

Interface: YDomainBase

Domain option that only apply to yDomains.

Contents​

Properties​

constrainPadding?​

constrainPadding?: boolean

Constrains padded domain to the zero baseline.

e.g. If your domain is [10, 100] and [-10, 120] with padding. The domain would be [0, 120] if constrained or [-10, 120] if unconstrained.

Default Value​

true

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:357


fit?​

fit?: boolean

Whether to fit the domain to the data.

Setting max or min will override this functionality.

Default Value​

false

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:328


includeDataFromIds?​

includeDataFromIds?: string[]

Specify a series of specIds to include into the domain calculation. Currently, it will work only for annotations, everything else is already included in the domain automatically. Setting domain.max or domain.min will override this functionality.

Default Value​

[]

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:335


padding?​

padding?: number

Padding for computed domain as positive number. Applied to domain before nicing

Setting max or min will override this functionality.

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:342


paddingUnit?​

paddingUnit?: DomainPaddingUnit

Unit of padding dimension

Default Value​

'domain'

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:348


Generated using typedoc-plugin-markdown and TypeDoc