BarChartStyle
public struct BarChartStyle : CTBarChartStyle
Control of the overall aesthetic of the bar 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: BarMarkerType
-
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: yAxisGridStyle: yAxisLabelPosition: yAxisLabelFont: yAxisLabelColour: yAxisNumberOfLabels: yAxisLabelType: yAxisTitle: yAxisTitleFont: yAxisTitleColour: baseline: topLine: globalAnimation: ) Model for controlling the overall aesthetic of the Bar 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: BarMarkerType = .full(), 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, 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, 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
Alignment of the content inside of 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.
xAxisLabelsFrom
Where the label data come from. DataPoint or xAxisLabels.
xAxisLabelColour
Text Colour for the labels on the X axis.
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.
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 choose between auto generated, numeric labels or custum array of strings.
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.
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.