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
labelsAndValuesDictionary of labels (key) and values
showWithDefaultAnimationoptional parameter to show the chart with the default animation. Defaults to
true. Iffalsethe caller is responsible for calling one of theanimatemethods to provide custom display animation.
View on GitHub
PredixDonutView Class Reference