PointStyle

public struct PointStyle : Hashable

Model for controlling the aesthetic of the point markers.

Point markers are placed on top of the line, marking where the data points are.

  • Overall size of the mark

    Declaration

    Swift

    public var pointSize: CGFloat
  • Outter ring colour

    Declaration

    Swift

    public var borderColour: Color
  • Center fill colour

    Declaration

    Swift

    public var fillColour: Color
  • Outter ring line width

    Declaration

    Swift

    public var lineWidth: CGFloat
  • Style of the point marks

    Declaration

    Swift

    public var pointType: PointType
  • Shape of the points

    Declaration

    Swift

    public var pointShape: PointShape
  • Styling for the point markers.

    Declaration

    Swift

    public init(
        pointSize: CGFloat = 9,
        borderColour: Color = .primary,
        fillColour: Color = Color(.gray),
        lineWidth: CGFloat = 3,
        pointType: PointType = .outline,
        pointShape: PointShape = .circle
    )

    Parameters

    pointSize

    Overall size of the mark

    borderColour

    Outter ring colour

    fillColour

    Center fill colour

    lineWidth

    Outter ring line width

    pointType

    Style of the point marks

    pointShape

    Shape of the points