Gradient
public struct Gradient : Encodable
Note
Used byGradientMarker.gradient, ScatterTernary<AData, BData,
CData>.GradientMarker.gradient, ScatterGeo<CoordinateData,
LocationsData>.GradientMarker.gradient, ScatterCarpet<AData, BData>.GradientMarker.gradient,
ScatterPolar<RData, ThetaData>.GradientMarker.gradient.
-
Sets the type of gradient used to fill the markers
Declaration
Swift
public var type: Type? -
Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical.
Declaration
Swift
public var coloring: Coloring? -
Creates
Gradientobject with specified properties.Declaration
Swift
public init(type: Type? = nil, coloring: Coloring? = nil)Parameters
typeSets the type of gradient used to fill the markers
coloringSets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical.
View on GitHub
Install in Dash
Gradient Structure Reference