Skip to main content

LinearGradient

@elastic/charts • Exports


@elastic/charts / LinearGradient

Interface: LinearGradient

A linear gradient fill.

Coordinates are normalized to the [0, 1] range and relative to the bounding box of the area being filled, where (0, 0) is the top-left and (1, 1) is the bottom-right corner.

Defaults describe a vertical gradient running from the bottom (y1: 1) to the top (y2: 0).

Contents​

Properties​

stops​

stops: GradientStop[]

ordered list of color stops defining the gradient

Source​

packages/charts/src/utils/themes/theme.ts:766


type​

type: "linear"

Source​

packages/charts/src/utils/themes/theme.ts:756


x0?​

x0?: number

start x-coordinate, normalized [0, 1] relative to the area bounding box

Default Value​

0

Source​

packages/charts/src/utils/themes/theme.ts:758


x1?​

x1?: number

end x-coordinate, normalized [0, 1] relative to the area bounding box

Default Value​

0

Source​

packages/charts/src/utils/themes/theme.ts:762


y0?​

y0?: number

start y-coordinate, normalized [0, 1] relative to the area bounding box

Default Value​

1

Source​

packages/charts/src/utils/themes/theme.ts:760


y1?​

y1?: number

end y-coordinate, normalized [0, 1] relative to the area bounding box

Default Value​

0

Source​

packages/charts/src/utils/themes/theme.ts:764


Generated using typedoc-plugin-markdown and TypeDoc