Open gregorpichler opened 2 years ago
Use xAxisLabel from BarChartDataPoint by adding .dataPoint(rotation: Angle()) to BarChartStyle
style = BarChartStyle(xAxisLabelsFrom: .dataPoint(rotation: Angle()),
yAxisNumberOfLabels: 5,
yAxisLabelType: .custom)
Nikola, I dont think this answers the question. Gregor is asking about alignment, not where/how to supply the label values.
Hi,
how can I center the labels on the xAxis? Ideally they are centered to the according the bar.
Sample code: