API / Series/Visual / LinearGradient

Defined in: src/core/types/chart/gradient.ts:15

Properties

Property Type Description
angle? number Gradient angle in degrees, following the CSS convention: 0 = bottom to top, 90 = left to right, 180 = top to bottom, 270 = right to left. Default 180
stops GradientStop[] Color stops in non-decreasing offset order. At least two stops are required. When offsets are equal, the last stop controls the color at that exact position. Min Items 2
type "linear-gradient" Gradient kind.