Post

Replies

Boosts

Views

Activity

Reply to Swift Charts y-axis scale changes when RuleMark annotation is displayed
I came up with a simple solution consisting in just setting the Y (or X) axes scale manually in this way (added chartXScale also, as sometimes I have experienced the same issue also with X axis domain): Chart { // Chart implementation } .chartYScale(domain: 0...50) .chartXScale(domain: 0...25) In this way you can prevent the jump to happen.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Swift Charts y-axis scale changes when RuleMark annotation is displayed
I have the very same problem with the annotation using chartOverlay. Did you come up with a solution? I have been thinking about it for 2 days and I concluded nothing…
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23