ExtraLineStyle
public struct ExtraLineStyle
Control of the styling of the Extra Line.
-
Undocumented
Declaration
Swift
public var lineColour: ColourStyle -
Undocumented
Declaration
Swift
public var lineType: LineType -
Undocumented
Declaration
Swift
public var lineSpacing: SpacingType -
Undocumented
Declaration
Swift
public var markerType: LineMarkerType -
Undocumented
Declaration
Swift
public var strokeStyle: Stroke -
Undocumented
Declaration
Swift
public var pointStyle: PointStyle -
Undocumented
Declaration
Swift
public var yAxisTitle: String? -
Undocumented
Declaration
Swift
public var yAxisNumberOfLabels: Int -
Undocumented
Declaration
Swift
public var animationType: AnimationType -
Undocumented
Declaration
Swift
public var baseline: Baseline -
Undocumented
Declaration
Swift
public var topLine: Topline -
init(lineColour:lineType: lineSpacing: markerType: strokeStyle: pointStyle: yAxisTitle: yAxisNumberOfLabels: animationType: baseline: topLine: ) Undocumented
Declaration
Swift
public init( lineColour: ColourStyle = ColourStyle(colour: .red), lineType: LineType = .curvedLine, lineSpacing: SpacingType = .line, markerType: LineMarkerType = .indicator(style: DotStyle()), strokeStyle: Stroke = Stroke(), pointStyle: PointStyle = PointStyle(pointSize: 0, borderColour: .clear, fillColour: .clear), yAxisTitle: String? = nil, yAxisNumberOfLabels: Int = 7, animationType: AnimationType = .draw, baseline: Baseline = .minimumValue, topLine: Topline = .maximumValue ) -
Controls which animations will be used.
When using a line chart
.drawis probably the right one to choose.When using on a filled line chart or on bar charts
.raiseis probably the right one to choose.
See morecase draw // Draws the line using `.trim`. case raise // Animates using `.scale`.Declaration
Swift
public enum AnimationType : Hashable -
Sets what type of chart is being used.
There is different spacing for line charts and bar charts, this sets that up.
See moreDeclaration
Swift
public enum SpacingType : Hashable