chartXScale(range:type:)
Configures the x scale for charts.
Declaration
nonisolated func chartXScale<Range>(range: Range, type: ScaleType? = nil) -> some View where Range : PositionScaleRange
Parameters
- range:
The range of x positions that correspond to the scale domain. By default the range is determined by the dimension of the plot area. You can use
range: .plotDimension(startPadding:, endPadding:)to add padding to the scale range. - type:
The scale type.