SmoothDashedLine
public struct SmoothDashedLine : Encodable
Note
Used byHistogram2DContour<XData, YData, ZData>.line
, Contour<ZData, XData, YData>.line
,
ContourCarpet<ZData, AData, BData>.line
.
-
Sets the color of the contour level.
Has no effect if
contours.coloring
is set to lines.Declaration
Swift
public var color: Color?
-
Sets the contour line width in (in px)
Declaration
Swift
public var width: Double?
-
Sets the dash style of lines.
Set to a dash type string (solid, dot, dash, longdash, dashdot, or longdashdot) or a dash length list in px (eg 5px,10px,2px,2px).
Declaration
Swift
public var dash: String?
-
Sets the amount of smoothing for the contour lines, where 0 corresponds to no smoothing.
Declaration
Swift
public var smoothing: Double?
-
Creates
SmoothDashedLine
object with specified properties.Declaration
Swift
public init(color: Color? = nil, width: Double? = nil, dash: String? = nil, smoothing: Double? = nil)
Parameters
color
Sets the color of the contour level.
width
Sets the contour line width in (in px)
dash
Sets the dash style of lines.
smoothing
Sets the amount of smoothing for the contour lines, where 0 corresponds to no smoothing.