Relative Content

Tag Archive for swiftswiftuiswiftui-charts

Reverse Y axis of SwiftUI Chart

Currently with the below default configuration from SwiftUI Charts, it is plotting top to bottom, i.e. minimum to maximum top to bottom. See the attached picture. I want the axis flipped so its plotting bottom to top.

Reverse Y axis of SwiftUI Chart

Currently with the below default configuration from SwiftUI Charts, it is plotting top to bottom, i.e. minimum to maximum top to bottom. See the attached picture. I want the axis flipped so its plotting bottom to top.

Reverse Y axis of SwiftUI Char

Currently with the below default configuration from SwiftUI Charts, it is plotting top to bottom, i.e. minimum to maximum top to bottom. See the attached picture. I want the axis flipped so its plotting bottom to top.

show correct position on chart y-axis of chart overlay

I have the following swiftUI chart. I am trying to get the value of y based on where the user is dragging so I can position the Capsule on the correct position on the chart. Unfortunately I am unable to get the correct position of the y, but instead this code shows me where the user is dragging on the y axis.

Remove gaps in swiftui chart

I’m trying to implement chart in swiftui. It works fine, but the values are not located from the very beginning of the graph, forming voids (marked in purple). How to get rid of them and stretch the line and areamark to the full width?

Swift UI charts Annotation is slow

I have a SwitUI chart with about 180 points. I have an annotation as part of the chart. The annotation tracks the mouse movement slowly, not fast enough. Is there anything I need to do differently in the code below to speed up the tracking of the annotation to the mouse/finger?