Gradient

public struct Gradient : Encodable

Note

Used by GradientMarker.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

    See more

    Declaration

    Swift

    public enum Gradient.`Type` : String, Encodable
  • 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 Gradient object with specified properties.

    Declaration

    Swift

    public init(type: Type? = nil, coloring: Coloring? = nil)

    Parameters

    type

    Sets the type of gradient used to fill the markers

    coloring

    Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical.