DashedLine
public struct DashedLine : Encodable
Note
Used byLayout.NewShape.line
, Layout.Shape.line
, Funnel<XData, YData>.Connector.line
,
Waterfall<XData, YData>.Connector.line
, ScatterGeo<CoordinateData, LocationsData>.line
.
-
Sets the line color.
By default uses either dark grey or white to increase contrast with background color.
Declaration
Swift
public var color: Color?
-
Sets the line width (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?
-
Creates
DashedLine
object with specified properties.Declaration
Swift
public init(color: Color? = nil, width: Double? = nil, dash: String? = nil)
Parameters
color
Sets the line color.
width
Sets the line width (in px).
dash
Sets the dash style of lines.