Enumerations
The following enumerations are available globally.
-
Where to get the colour data from.
See morecase barStyle // From BarStyle data model case dataPoints // From each data point
Declaration
Swift
public enum ColourFrom
-
Where the marker lines come from to meet at a specified point.
See morecase none // No overlay markers. case vertical // Vertical line from top to bottom. case full // Full width and height of view intersecting at a specified point. case bottomLeading // From bottom and leading edges meeting at a specified point. case bottomTrailing // From bottom and trailing edges meeting at a specified point. case topLeading // From top and leading edges meeting at a specified point. case topTrailing // From top and trailing edges meeting at a specified point.
Declaration
Swift
public enum BarMarkerType : MarkerType
-
Drawing style of the line
See morecase line // Straight line from point to point case curvedLine // Dual control point curved line case stepped // Stepped line from point to point
Declaration
Swift
public enum LineType
-
Style of the point marks
See morecase filled // Just fill case outline // Just stroke case filledOutLine // Both fill and stroke
Declaration
Swift
public enum PointType
-
Declaration
Swift
public enum PointShape
-
Where the Y and X touch markers should attach themselves to.
See morecase line(dot: Dot) // Attached to the line. case point // Attached to the data points.
Declaration
Swift
public enum MarkerAttachment
-
Where the marker lines come from to meet at a specified point.
See morecase none // No overlay markers. case indicator(style: DotStyle) // Dot that follows the path. case vertical(attachment: MarkerAttachment) // Vertical line from top to bottom. case full(attachment: MarkerAttachment) // Full width and height of view intersecting at a specified point. case bottomLeading(attachment: MarkerAttachment) // From bottom and leading edges meeting at a specified point. case bottomTrailing(attachment: MarkerAttachment) // From bottom and trailing edges meeting at a specified point. case topLeading(attachment: MarkerAttachment) // From top and leading edges meeting at a specified point. case topTrailing(attachment: MarkerAttachment) // From top and trailing edges meeting at a specified point.
Declaration
Swift
public enum LineMarkerType : MarkerType
-
Whether or not to show a dot on the line
See morecase none // No Dot case style(_ style: DotStyle) // Adds a dot the line at point of touch.
Declaration
Swift
public enum Dot
-
Option to add overlays on top of the segment.
See morecase none // No overlay case barStyle // Text overlay case dataPoints // System icon overlay
Declaration
Swift
public enum OverlayType : Hashable
-
The type of
DataSet
being used
See morecase single // Single data set - i.e LineDataSet case multi // Multi data set - i.e MultiLineDataSet
Declaration
Swift
public enum DataSetType
-
The type of chart being used.
See morecase line // Line Chart Type case bar // Bar Chart Type case pie // Pie Chart Type
Declaration
Swift
public enum ChartType
-
Type of colour styling.
See morecase colour // Single Colour case gradientColour // Colour Gradient case gradientStops // Colour Gradient with stop control
Declaration
Swift
public enum ColourType
-
Placement of the data point information panel when touch overlay modifier is applied.
See morecase floating // Follows input across the chart. case infoBox(isStatic: Bool) // Display in the InfoBox. Must have .infoBox() case header // Fix in the Header box. Must have .headerBox().
Declaration
Swift
public enum InfoBoxPlacement
-
Alignment of the content inside of the information box
See morecase vertical // Puts the legend, value and description verticaly case horizontal // Puts the legend, value and description horizontaly
Declaration
Swift
public enum InfoBoxAlignment
-
Option to display units before or after values.
See morecase none // No unit case prefix(of: String) // Before value case suffix(of: String) // After value
Declaration
Swift
public enum TouchUnit
-
Declaration
Swift
public enum XAxisLabelPosistion
-
Where the label data come from.
xAxisLabel comes from ChartData –> DataPoint model.
xAxisLabels comes from ChartData –> xAxisLabels
See morecase dataPoint // ChartData --> DataPoint --> xAxisLabel case chartData // ChartData --> xAxisLabels
Declaration
Swift
public enum LabelsFrom
-
Declaration
Swift
public enum YAxisLabelPosistion
-
Option to display the markers’ value inline with the marker..
See morecase none // No label. case yAxis(specifier: String, formatter: NumberFormatter? = nil) // Places the label in the yAxis labels. case center(specifier: String, formatter: NumberFormatter? = nil) // Places the label in the center of chart. case position(location: CGFloat, specifier: String, formatter: NumberFormatter? = nil) // Places the label at a relative position from leading edge.
Declaration
Swift
public enum DisplayValue
-
Where to start drawing the line chart from.
See morecase minimumValue // Lowest value in the data set(s) case minimumWithMaximum(of: Double) // Set a custom baseline case zero // Set 0 as the lowest value
Declaration
Swift
public enum Baseline : Hashable
-
Where to end drawing the chart.
See morecase maximumValue // Highest value in the data set(s) case maximum(of: Double) // Set a custom topline
Declaration
Swift
public enum Topline : Hashable
-
Option to choose between auto generated, numeric labels or custum array of strings.
Custom is set from
ChartData -> yAxisLabels
See morecase numeric // Auto generated, numeric labels. case custom // Custom labels array -- `ChartData -> yAxisLabels`
Declaration
Swift
public enum YAxisLabelType
-
Controls how second Y Axis will be styled.
See morecase none // No colour marker. case style(size: CGFloat) // Get style from data model. case custom(colour: ColourStyle, size: CGFloat) // Set custom style.
Declaration
Swift
public enum AxisColour