-
public class LinearGradient extends JsObject
Linear gradient. Used to fill shapes with linear gradient configured with (anychart.graphics.vector.GradientKey) array. Gradient line is a perpendicular to colors line. Gradient angle is an angle relative to horizontal line (0 degrees means horizontal). Gradient has its own opacity, but keys opacity has priority over it.Do not invoke constructor directly. Use fill to create linear gradient. See also:fillfill Linear gradient has three modes: ObjectBoundingBox with angle value preservation, ObjectBoundingBox without angle value preservation and UserSpaceOnUse. {docs:Graphics/Fill_Settings#linear_gradient}Learn more about gradient modes.{docs}
-
-
Constructor Summary
Constructors Constructor Description LinearGradient(String jsChart)
-
Method Summary
Modifier and Type Method Description static LinearGradientinstantiate()StringgetJsBase()voiddispose()Disposes gradient completely, removes from parent layer, null internal links, removes from DOM structure. -
-
Constructor Detail
-
LinearGradient
LinearGradient(String jsChart)
-
-
Method Detail
-
instantiate
static LinearGradient instantiate()
-
dispose
void dispose()
Disposes gradient completely, removes from parent layer, null internal links, removes from DOM structure.
-
-
-
-