Skip to main content

GradientStop

@elastic/charts • Exports


@elastic/charts / GradientStop

Interface: GradientStop

A color stop of a gradient fill.

Contents​

Properties​

color​

color: string

a static color, or (ColorVariant:variable).Series to derive it from the series color

Source​

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


offset​

offset: number

position of the stop within the gradient, in the [0, 1] range

Source​

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


opacity?​

opacity?: number

optional opacity multiplier applied on top of the resolved stop color, in the [0, 1] range

Source​

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


Generated using typedoc-plugin-markdown and TypeDoc