CTLineBarChartDataProtocol
public protocol CTLineBarChartDataProtocol : CTChartData where Self.CTStyle : CTLineBarChartStyle
A protocol to extend functionality of CTChartData
specifically for Line and Bar Charts.
-
Array of strings for the labels on the X Axis instead of the labels in the data points.
Declaration
Swift
var xAxisLabels: [String]? { get set }
-
Array of strings for the labels on the Y Axis instead of the labels generated from data point values.
Declaration
Swift
var yAxisLabels: [String]? { get set }
-
Data model to hold data about the Views layout.
This informs some
ViewModifiers
whether the chart has X and/or Y axis labels so they can configure thier layouts appropriately.Declaration
Swift
var viewData: ChartViewData { get set }
-
A data model for the
ExtraLine
View ModifierDeclaration
Swift
var extraLineData: ExtraLineData? { get set }
-
A type representing a View for displaying second set of labels on the Y axis.
Declaration
Swift
associatedtype ExtraYLabels : View
-
getExtraYAxisLabels()
Default implementationView for displaying second set of labels on the Y axis.
Default Implementation
Declaration
Swift
func getExtraYAxisLabels() -> ExtraYLabels
-
Get the relevant colour indicator for the y axis labels.
Declaration
Swift
func getColour() -> ColourStyle
-
A type representing a View for displaying labels on the X axis.
Declaration
Swift
associatedtype XLabels : View
-
Displays a view for the labels on the X Axis.
Declaration
Swift
func getXAxisLabels() -> XLabels
-
A type representing a View for displaying labels on the X axis.
Declaration
Swift
associatedtype YLabels : View
-
Displays a view for the labels on the Y Axis.
Declaration
Swift
func getYAxisLabels() -> YLabels
-
setBoxLocation(touchLocation:
Default implementationboxFrame: chartSize: ) Sets the data point info box location while keeping it within the parent view.
Default Implementation
Declaration
Swift
func setBoxLocation(touchLocation: CGFloat, boxFrame: CGRect, chartSize: CGRect) -> CGFloat
Parameters
touchLocation
Location the user has pressed.
boxFrame
The size of the point info box.
chartSize
The size of the chart view as the parent view.
-
setBoxLocationation(touchLocation:
Extension methodboxFrame: chartSize: ) Undocumented
Declaration
Swift
public func setBoxLocationation(touchLocation: CGFloat, boxFrame: CGRect, chartSize: CGRect) -> CGFloat
-
getYAxisTitle(colour:
Extension method) Returns the title for y axis.
This also informs
ViewData
of it width so that the positioning of the views in the x axis can be calculated.Declaration
Swift
public func getYAxisTitle(colour: AxisColour) -> some View
-
getExtraYAxisTitle(colour:
Extension method) Undocumented
Declaration
Swift
public func getExtraYAxisTitle(colour: AxisColour) -> some View
-
setBoxLocationation(touchLocation:
Extension methodboxFrame: chartSize: ) Undocumented
Declaration
Swift
public func setBoxLocationation(touchLocation: CGFloat, boxFrame: CGRect, chartSize: CGRect) -> CGFloat
-
range
Extension methodUndocumented
Declaration
Swift
public var range: Double { get }
-
minValue
Extension methodUndocumented
Declaration
Swift
public var minValue: Double { get }
-
maxValue
Extension methodUndocumented
Declaration
Swift
public var maxValue: Double { get }
-
average
Extension methodUndocumented
Declaration
Swift
public var average: Double { get }
-
poiMarker(value:
Extension methodrange: minValue: ) Undocumented
Declaration
Swift
public func poiMarker(value: Double, range: Double, minValue: Double) -> some Shape
-
poiLabelAxis(markerValue:
Extension methodspecifier: formatter: labelFont: labelColour: labelBackground: labelBorderColor: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiLabelAxis( markerValue: Double, specifier: String, formatter: NumberFormatter?, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiLabelCenter(markerValue:
Extension methodspecifier: formatter: labelFont: labelColour: labelBackground: labelBorderColor: strokeStyle: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiLabelCenter( markerValue: Double, specifier: String, formatter: NumberFormatter?, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, strokeStyle: StrokeStyle, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiLabelPosition(location:
Extension methodmarkerValue: specifier: formatter: labelFont: labelColour: labelBackground: labelBorderColor: strokeStyle: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiLabelPosition( location: CGFloat, markerValue: Double, specifier: String, formatter: NumberFormatter?, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, strokeStyle: StrokeStyle, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiMarker(value:
Extension methodrange: minValue: ) Undocumented
Declaration
Swift
public func poiMarker(value: Double, range: Double, minValue: Double) -> some Shape
-
poiLabelAxis(markerValue:
Extension methodspecifier: labelFont: labelColour: labelBackground: labelBorderColor: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiLabelAxis( markerValue: Double, specifier: String, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiLabelPosition(location:
Extension methodmarkerValue: specifier: formatter: labelFont: labelColour: labelBackground: labelBorderColor: strokeStyle: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiLabelPosition( location: CGFloat, markerValue: Double, specifier: String, formatter: NumberFormatter?, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, strokeStyle: StrokeStyle, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiValueLabelPositionAxis(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelPositionAxis(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiValueLabelPositionCenter(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelPositionCenter(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiValueLabelRelativePosition(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelRelativePosition(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiValueLabelPositionAxis(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelPositionAxis(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiValueLabelPositionCenter(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelPositionCenter(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiValueLabelRelativePosition(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelRelativePosition(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiValueLabelPositionAxis(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelPositionAxis(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiValueLabelPositionCenter(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelPositionCenter(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiValueLabelRelativePosition(frame:
Extension methodmarkerValue: minValue: range: ) Undocumented
Declaration
Swift
public func poiValueLabelRelativePosition(frame: CGRect, markerValue: Double, minValue: Double, range: Double) -> CGPoint
-
poiAbscissaMarker(markerValue:
Extension methoddataPointCount: ) Undocumented
Declaration
Swift
public func poiAbscissaMarker(markerValue: Int, dataPointCount: Int) -> some Shape
-
poiAbscissaLabelAxis(marker:
Extension methodlabelFont: labelColour: labelBackground: labelBorderColor: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiAbscissaLabelAxis( marker: String, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiAbscissaLabelCenter(marker:
Extension methodlabelFont: labelColour: labelBackground: labelBorderColor: strokeStyle: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiAbscissaLabelCenter( marker: String, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, strokeStyle: StrokeStyle, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiAbscissaLabelPosition(location:
Extension methodmarker: labelFont: labelColour: labelBackground: labelBorderColor: strokeStyle: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiAbscissaLabelPosition( location: CGFloat, marker: String, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, strokeStyle: StrokeStyle, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiAbscissaMarker(markerValue:
Extension methoddataPointCount: ) Undocumented
Declaration
Swift
public func poiAbscissaMarker(markerValue: Int, dataPointCount: Int) -> some Shape
-
poiAbscissaLabelAxis(marker:
Extension methodlabelFont: labelColour: labelBackground: labelBorderColor: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiAbscissaLabelAxis( marker: String, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiAbscissaLabelPosition(location:
Extension methodmarker: labelFont: labelColour: labelBackground: labelBorderColor: strokeStyle: customLabelShape: padding: ) Undocumented
Declaration
Swift
public func poiAbscissaLabelPosition( location: CGFloat, marker: String, labelFont: Font, labelColour: Color, labelBackground: Color, labelBorderColor: Color, strokeStyle: StrokeStyle, customLabelShape: CustomLabelShape?, padding: CGFloat? ) -> some View
-
poiAbscissaValueLabelPositionAxis(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelPositionAxis(frame: CGRect, markerValue: Int, count: Int) -> CGPoint
-
poiAbscissaValueLabelPositionCenter(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelPositionCenter(frame: CGRect, markerValue: Int, count: Int) -> CGPoint
-
poiAbscissaValueLabelRelativePosition(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelRelativePosition(frame: CGRect, markerValue: Int, count: Int) -> CGPoint
-
poiAbscissaValueLabelPositionAxis(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelPositionAxis(frame: CGRect, markerValue: Int, count: Int) -> CGPoint
-
poiAbscissaValueLabelPositionCenter(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelPositionCenter(frame: CGRect, markerValue: Int, count: Int) -> CGPoint
-
poiAbscissaValueLabelRelativePosition(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelRelativePosition(frame: CGRect, markerValue: Int, count: Int) -> CGPoint
-
poiAbscissaValueLabelPositionAxis(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelPositionAxis(frame: CGRect, markerValue: Int, count: Int) -> CGPoint
-
poiAbscissaValueLabelPositionCenter(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelPositionCenter(frame: CGRect, markerValue: Int, count: Int) -> CGPoint
-
poiAbscissaValueLabelRelativePosition(frame:
Extension methodmarkerValue: count: ) Undocumented
Declaration
Swift
public func poiAbscissaValueLabelRelativePosition(frame: CGRect, markerValue: Int, count: Int) -> CGPoint