PredixDonutView
open class PredixDonutView: PieChartView
PredixDonutView – Donut view chart, also can be a pie chart.
-
Array of colors to use. Defaults to UIColor.Predix.DataVisualizationSets.regular
Declaration
Swift
open var dataVisualizationColors: [UIColor] = UIColor.Predix.DataVisualizationSets.regular
-
Helper function to populate the chart based on simple key/value pairs
Declaration
Swift
public func loadLabelsAndValues(_ labelsAndValues: [String: Double], showWithDefaultAnimation: Bool = true)
Parameters
labelsAndValues
Dictionary of labels (key) and values
showWithDefaultAnimation
optional parameter to show the chart with the default animation. Defaults to
true
. Iffalse
the caller is responsible for calling one of theanimate
methods to provide custom display animation.