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:746
type
type:
"linear"
Source
packages/charts/src/utils/themes/theme.ts:736
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:738
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:742
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:740
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:744
Generated using typedoc-plugin-markdown and TypeDoc