Word wrap can't see bottom label xAxis
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I've enabled wordWrap in my xAxis and it seems not to word-wrap at all. Here is my xAxis code:
`let xAxis = chartView.xAxis
xAxis.labelPosition = .bottom
xAxis.granularity = 1
xAxis.labelCount = 4
let xAxisLabel = ["< 75", "75 >= <100", "100 >= <125", "125 >= <137.5", ">= 137.5"]
let xFormatter = CustomXAxisLabelValueFormatter()
xFormatter.Xlabels = xAxisLabel
xAxis.valueFormatter = xFormatter
xAxis.labelFont = AIAMetrics.barChartTitleFont
xAxis.wordWrapEnabled = true
xAxis.wordWrapWidthPercent = 2.0
xAxis.granularityEnabled = true
xAxis.drawGridLinesEnabled = false`
And the result I get is:

If I reduce the wordWrapWidthPercent to 1.0, it becomes like this:

So how I can achieve word wrap? seems like its cut off and I can't see the bottom
Contributor guide
Assessment
This issue has not been assessed yet.