I'm not sure if this is the most proper way to solve your problem, but it works for me:
.chartXScale(range: .plotDimension(startPadding: -10, endPadding: -10))
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: