ChartsUI

main

A SwiftUI charts library
Kireyin/ChartsUI

ChartsUI

PieChart

Usage

Donut chart

Start by creating your DataPoints and DataSet

let dataPoints: [PieChartDataPoint] = [PieChartDataPoint(value: 15, color: .blue)]
let dataSet: PieChartDataSet = PieChartDataSet(dataPoints: dataPoints)

Then add a PieChartView to your view hierarchy

var body: some View {
  PieChartView(dataSet: dataSet)
}

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Sep 20 2022 14:56:31 GMT-0500 (GMT-05:00)