docs/wiki/06-unified-axis-and-label-alignment.md
2.x uses a shared X-positioning pipeline across:
LineChart, BarChart)AxisLabels)This removes drift where labels and marks used different spacing logic.
chartData([Double])
chartData([(Double, Double)])
chartXRange.chartXAxisLabels(["M", "T", "W", "T", "F", "S", "S"])
.chartXAxisLabels([(0, "A"), (1, "B"), (2, "C")], range: 0...2)
.chartXAxisAutoTicks(6, format: .number)
.chartYAxisAutoTicks(5, format: .number)
.chartXAxisLabelRotation(.degrees(-20))
For aligned mixed charts:
chartXRange consistent when using numeric tuplesAxisLabels) that wraps both layers