After some digging I found you can also clip in the "plotArea", which is the area where data is plotted, using :
.chartPlotStyle { plotArea in
plotArea.clipped()
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: