Swift Chart Zoom/Magnification/Pinch Gesture

Is there any approach or sample code available to use these APIs:

.chartScrollableAxes(.horizontal)
.chartScrollPosition(x: ...)
.chartScrollPosition(initialX: ...)
.chartScrollTargetBehavior(...)
.chartXVisibleDomain(length: ...)

Plus a gesture recognised or Pinch or Magnification to create a Swift Chart with an X axis that can be zoomed in or out with a pinch gesture? And when zoomed in at any level above 0, the chart can then be scrolled left to right along the X axis.

I've had success using .chartScrollableAxes with .chartXSelection in parallel, so would also like to keep the ability to select X values too.

Keen to see a solution to zoom in/out in charts.

Swift Chart Zoom/Magnification/Pinch Gesture
 
 
Q