spaceMin(Max) not respected when autoScalingEnabled (Y-Axis)
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hey,
I have live data in a chart, where its autoscaling as new data comes in. I'm trying to give it enough of a buffer so its not always readjusting the scale.
So when I setup my chart, I do the following
```
lineChartView.leftAxis.granularityEnabled = true
lineChartView.leftAxis.granularity = 1
lineChartView.leftAxis.labelCount = 20
lineChartView.leftAxis.forceLabelsEnabled = true
let yRangeBuffer: Double = 100000
lineChartView.leftAxis.spaceMin = yRangeBuffer
lineChartView.leftAxis.spaceMax = yRangeBuffer
```
But it seems autoscaling doesn't reflect that. Am I missing something here?
Cheers
Contributor guide
Research direction
Start by reproducing the reported Swift configuration on the Y-axis with autoScalingEnabled, live data, and the given spaceMin and spaceMax values. Trace the leftAxis autoscaling behavior and verify that both spacing values remain effective as new data arrives; done means the chart keeps the requested buffer without repeatedly collapsing the range.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- data-visualization, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100