I want to replace my custom chart implementation with the new SwiftUI Charts. Because I use a big dataset I want to have like 6 Bars visible in my view and the ability to scroll through the rest of the data.
My View is implemented like this:
Chart {
ForEach(data) {
BarMark(x: .value("Total Count", $0.value), y: .value("Shape Type", $0.text))
.foregroundStyle($0.color)
}
}
This is the amount of Bars I want to have in my view:
And this is my current view:
Did I overlook something?
Cheers Nils
Post
Replies
Boosts
Views
Activity
As decribed in this article - https://developer.apple.com/news/?id=8vkqn3ih the console should print out to console in swiftui previews if debug preview is selected. I remember that I used this sometimes. But since I am using Xcode 12, I did not get a single character printed out to console. Is that a bug or was this feature removed?