BarChart xAxis label offsets
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hello again, first off I want to say thank you for responding to my last issue so quickly. I do have another question though. When creating a bar charts, with labels on the bottom, the very first label is offset and not directly under the respective bar.
I took a look at the demo and I matched all my settings accordingly: `chartView.isUserInteractionEnabled = false
chartView.chartDescription?.text = ""
chartView.drawBarShadowEnabled = false
chartView.rightAxis.drawGridLinesEnabled = false
chartView.rightAxis.drawAxisLineEnabled = false
chartView.rightAxis.drawLabelsEnabled = false
chartView.xAxis.avoidFirstLastClippingEnabled = true
chartView.xAxis.centerAxisLabelsEnabled = false
chartView.xAxis.drawLimitLinesBehindDataEnabled = false
chartView.xAxis.labelPosition = .bottom
chartView.xAxis.labelCount = 3
chartView.xAxis.axisMinimum = -0.5
chartView.xAxis.axisMaximum = 3
chartView.xAxis.drawGridLinesEnabled = false
chartView.fitBars = true
chartView.xAxis.granularity = 1` Im not sure what other properties to try. I would appreciate the guidance. Thanks again
Contributor guide
Assessment
This issue has not been assessed yet.