Skip to main content

YDomainBase

@elastic/chartsExports


@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:358


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:329


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:336


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:343


paddingUnit?

paddingUnit?: DomainPaddingUnit

Unit of padding dimension

Default Value

'domain'

Source

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


Generated using typedoc-plugin-markdown and TypeDoc