Swift Package Index

ChartsUI

https://github.com/Kireyin/ChartsUI.git

A SwiftUI charts library


ChartsUI

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)
}