LineChartStyle
public struct LineChartStyle : CTLineChartStyle
Control of the overall aesthetic of the line chart.
Controls the look of the chart as a whole, not including any styling specific to the data set(s),
-
Declaration
Swift
public var infoBoxPlacement: InfoBoxPlacement
-
Declaration
Swift
public var infoBoxContentAlignment: InfoBoxAlignment
-
Declaration
Swift
public var infoBoxValueFont: Font
-
Declaration
Swift
public var infoBoxValueColour: Color
-
Declaration
Swift
public var infoBoxDescriptionFont: Font
-
Declaration
Swift
public var infoBoxDescriptionColour: Color
-
Declaration
Swift
public var infoBoxBackgroundColour: Color
-
Declaration
Swift
public var infoBoxBorderColour: Color
-
Declaration
Swift
public var infoBoxBorderStyle: StrokeStyle
-
Declaration
Swift
public var markerType: LineMarkerType
-
Declaration
Swift
public var xAxisGridStyle: GridStyle
-
Declaration
Swift
public var xAxisLabelPosition: XAxisLabelPosistion
-
Declaration
Swift
public var xAxisLabelFont: Font
-
Declaration
Swift
public var xAxisLabelColour: Color
-
Declaration
Swift
public var xAxisLabelsFrom: LabelsFrom
-
Declaration
Swift
public var xAxisTitle: String?
-
Declaration
Swift
public var xAxisTitleFont: Font
-
Declaration
Swift
public var xAxisTitleColour: Color
-
Declaration
Swift
public var xAxisBorderColour: Color?
-
Declaration
Swift
public var yAxisGridStyle: GridStyle
-
Declaration
Swift
public var yAxisLabelPosition: YAxisLabelPosistion
-
Declaration
Swift
public var yAxisLabelFont: Font
-
Declaration
Swift
public var yAxisLabelColour: Color
-
Declaration
Swift
public var yAxisNumberOfLabels: Int
-
Declaration
Swift
public var yAxisLabelType: YAxisLabelType
-
Declaration
Swift
public var yAxisTitle: String?
-
Declaration
Swift
public var yAxisTitleFont: Font
-
Declaration
Swift
public var yAxisTitleColour: Color
-
Declaration
Swift
public var yAxisBorderColour: Color?
-
Declaration
Swift
public var baseline: Baseline
-
Declaration
Swift
public var topLine: Topline
-
Declaration
Swift
public var globalAnimation: Animation
-
init(infoBoxPlacement:
infoBoxContentAlignment: infoBoxValueFont: infoBoxValueColour: infoBoxDescriptionFont: infoBoxDescriptionColour: infoBoxBackgroundColour: infoBoxBorderColour: infoBoxBorderStyle: markerType: xAxisGridStyle: xAxisLabelPosition: xAxisLabelFont: xAxisLabelColour: xAxisLabelsFrom: xAxisTitle: xAxisTitleFont: xAxisTitleColour: xAxisBorderColour: yAxisGridStyle: yAxisLabelPosition: yAxisLabelFont: yAxisLabelColour: yAxisNumberOfLabels: yAxisLabelType: yAxisTitle: yAxisTitleFont: yAxisTitleColour: yAxisBorderColour: baseline: topLine: globalAnimation: ) Model for controlling the overall aesthetic of the chart.
Declaration
Swift
public init( infoBoxPlacement: InfoBoxPlacement = .floating, infoBoxContentAlignment: InfoBoxAlignment = .vertical, infoBoxValueFont: Font = .title3, infoBoxValueColour: Color = Color.primary, infoBoxDescriptionFont: Font = .caption, infoBoxDescriptionColour: Color = Color.primary, infoBoxBackgroundColour: Color = Color.systemsBackground, infoBoxBorderColour: Color = Color.clear, infoBoxBorderStyle: StrokeStyle = StrokeStyle(lineWidth: 0), markerType: LineMarkerType = .indicator(style: DotStyle()), xAxisGridStyle: GridStyle = GridStyle(), xAxisLabelPosition: XAxisLabelPosistion = .bottom, xAxisLabelFont: Font = .caption, xAxisLabelColour: Color = Color.primary, xAxisLabelsFrom: LabelsFrom = .dataPoint(rotation: .degrees(0)), xAxisTitle: String? = nil, xAxisTitleFont: Font = .caption, xAxisTitleColour: Color = .primary, xAxisBorderColour: Color? = nil, yAxisGridStyle: GridStyle = GridStyle(), yAxisLabelPosition: YAxisLabelPosistion = .leading, yAxisLabelFont: Font = .caption, yAxisLabelColour: Color = Color.primary, yAxisNumberOfLabels: Int = 10, yAxisLabelType: YAxisLabelType = .numeric, yAxisTitle: String? = nil, yAxisTitleFont: Font = .caption, yAxisTitleColour: Color = .primary, yAxisBorderColour: Color? = nil, baseline: Baseline = .minimumValue, topLine: Topline = .maximumValue, globalAnimation: Animation = Animation.linear(duration: 1) )
Parameters
infoBoxPlacement
Placement of the information box that appears on touch input.
infoBoxContentAlignment
Placement of the content inside the information box
infoBoxValueFont
Font for the value part of the touch info.
infoBoxValueColour
Colour of the value part of the touch info.
infoBoxDescriptionFont
Font for the description part of the touch info.
infoBoxDescriptionColour
Colour of the description part of the touch info.
infoBoxBackgroundColour
Background colour of touch info.
infoBoxBorderColour
Border colour of the touch info.
infoBoxBorderStyle
Border style of the touch info.
markerType
Where the marker lines come from to meet at a specified point.
xAxisGridStyle
Style of the vertical lines breaking up the chart.
xAxisLabelPosition
Location of the X axis labels - Top or Bottom.
xAxisLabelFont
Font of the labels on the X axis.
xAxisLabelColour
Text Colour for the labels on the X axis.
xAxisLabelsFrom
Where the label data come from. DataPoint or xAxisLabels.
xAxisTitle
Label to display next to the chart giving info about the axis.
xAxisTitleFont
Font of the x axis title.
xAxisTitleColour
Colour of the x axis title.
xAxisBorderColour
Colour of the x axis border.
yAxisGridStyle
Style of the horizontal lines breaking up the chart.
yAxisLabelPosition
Location of the X axis labels - Leading or Trailing.
yAxisLabelFont
Font of the labels on the Y axis.
yAxisLabelColour
Text Colour for the labels on the Y axis.
yAxisNumberOfLabels
Number Of Labels on Y Axis.
yAxisLabelType
Option to add custom Strings to Y axis rather than auto generated numbers.
yAxisTitle
Label to display next to the chart giving info about the axis.
yAxisTitleFont
Font of the y axis title.
yAxisTitleColour
Colour of the y axis title.
yAxisBorderColour
Colour of the y axis border.
baseline
Whether the chart is drawn from baseline of zero or the minimum datapoint value.
topLine
Where to finish drawing the chart from. Data set maximum or custom.
globalAnimation
Global control of animations.