grouped barChart xAxis labels not displaying
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I have a grouped BarChart with 2 values per group and want to show a label for every group.
It works perfectly fine on Charts 3.0.2, but somehow it's no showing the labels anymore when updating to 3.0.4. below is my code related to the xAxis labels:
let groupSpace = 0.2
let barSpace = 0.0
let barWidth = 0.4
let groupCount = xAxisTitles.count
chartData.barWidth = barWidth
chartData.groupBars(fromX: 0, groupSpace: groupSpace, barSpace: barSpace)
xAxis.granularity = 0.5
xAxis.axisMinimum = 0
xAxis.axisMaximum = Double(groupCount)
xAxis.labelPosition = .bottom
xAxis.labelRotationAngle = -45.0
xAxis.centerAxisLabelsEnabled = true
xAxis.labelCount = groupCount
Contributor guide
Research direction
Reproduce the grouped BarChart using the shown xAxis and groupBars configuration, comparing Charts 3.0.2 with 3.0.4. Start by checking the grouped-axis label behavior around granularity, axis bounds, label count, and centerAxisLabelsEnabled; done means one label displays for every group on the affected version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- data-visualization, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100