Is there a way to "zoom" a swift line chart with a gesture? For example like you zoom in and out in Maps. In this case you would would be changing the x or y axis scale as you pinch in or out.
Swift Charts Zoom
How do you set up you x/y axis scale ?
You can use .chartYScale() and .chartXScale() for that. You can pass parameters for the scale.
Here is a link to some of the Apple documentation for those.
[https://developer.apple.com/documentation/swiftui/view-chart-view]
Hey @kka, it seems like you finally found a solution to make your chart zoomable. Would you mind giving us a better insight about the logic you've used to achieve that ? That would be very nice, because I fail to grasp it. Thanks !