Skip to main content

DomainPaddingUnit

@elastic/chartsExports


@elastic/charts / DomainPaddingUnit

Variable: DomainPaddingUnit

const DomainPaddingUnit: Readonly<Object>

Padding unit for domain

Type declaration

Domain

Domain: "domain"

Raw value in the domain space.

Example:

If your domain is [20, 40] and your padding value is 10. The resulting domain would be [10, 50]

DomainRatio

DomainRatio: "domainRatio"

Ratio of total domain relative to domain space

Example:

If your domain is [20, 40] and your padding value is 0.1. The resulting padding would be 2 (i.e. 0.1 * (40 - 20)) resulting in a domain of [18, 42]

Pixel

Pixel: "pixel"

Spatial pixel value (aka screenspace) not dependent on domain.

Source

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


Generated using typedoc-plugin-markdown and TypeDoc