import SwiftUI
import SwiftUICharts
struct TestView: View {
var body: some View {
PieChart()
.data([("Rent", 1300), ("Transport", 500)])
.chartStyle(.init(backgroundColor: .greenRed, foregroundColor: [.redBlack, .orangeBright]))
}
}
struct TestView_Previews: PreviewProvider {
static var previews: some View {
TestView()
}
}
and no labels are shown. both in landscape and portrait mode.
tried this code:
and no labels are shown. both in landscape and portrait mode.
results can be seen here: https://imgur.com/a/n1EDas0