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
infoBoxPlacementPlacement of the information box that appears on touch input.
infoBoxContentAlignmentPlacement of the content inside the information box
infoBoxValueFontFont for the value part of the touch info.
infoBoxValueColourColour of the value part of the touch info.
infoBoxDescriptionFontFont for the description part of the touch info.
infoBoxDescriptionColourColour of the description part of the touch info.
infoBoxBackgroundColourBackground colour of touch info.
infoBoxBorderColourBorder colour of the touch info.
infoBoxBorderStyleBorder style of the touch info.
markerTypeWhere the marker lines come from to meet at a specified point.
xAxisGridStyleStyle of the vertical lines breaking up the chart.
xAxisLabelPositionLocation of the X axis labels - Top or Bottom.
xAxisLabelFontFont of the labels on the X axis.
xAxisLabelColourText Colour for the labels on the X axis.
xAxisLabelsFromWhere the label data come from. DataPoint or xAxisLabels.
xAxisTitleLabel to display next to the chart giving info about the axis.
xAxisTitleFontFont of the x axis title.
xAxisTitleColourColour of the x axis title.
xAxisBorderColourColour of the x axis border.
yAxisGridStyleStyle of the horizontal lines breaking up the chart.
yAxisLabelPositionLocation of the X axis labels - Leading or Trailing.
yAxisLabelFontFont of the labels on the Y axis.
yAxisLabelColourText Colour for the labels on the Y axis.
yAxisNumberOfLabelsNumber Of Labels on Y Axis.
yAxisLabelTypeOption to add custom Strings to Y axis rather than auto generated numbers.
yAxisTitleLabel to display next to the chart giving info about the axis.
yAxisTitleFontFont of the y axis title.
yAxisTitleColourColour of the y axis title.
yAxisBorderColourColour of the y axis border.
baselineWhether the chart is drawn from baseline of zero or the minimum datapoint value.
topLineWhere to finish drawing the chart from. Data set maximum or custom.
globalAnimationGlobal control of animations.