Animate is not smooth in the final release
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
## What did you do?
Upgraded Chart to Swift 4.2 version. No code change whatever.
## What did you expect to happen?
scatterView.animate(xAxisDuration: 1.0, yAxisDuration: 0.0) draw smoothly and nice as was appearing in the previous version.
## What happened instead?
scatterView.animate(xAxisDuration: 1.0, yAxisDuration: 0.0) is choppy no matter what the AxisDuration setting.
## Charts Environment
**Charts version/Branch/Commit Number:** Charts 3.2.0
**Xcode version:** Xcode 10.0
**Swift version:** Swift 4.2
**Platform(s) running Charts:** iOS 12.0.1
**macOS version running Xcode:** Mojave 10.14
## Demo Project
```
func updateChartWithVectorData(receivedData: [Float], markerData1: [Int], markerData2: [Int], markerData3: [Int]) {
var dataEntries_a: [ChartDataEntry] = []
for i in 0..Drawing complete!")
}
```
Contributor guide
Research direction
Start by reproducing updateChartWithVectorData, especially the scatterView.animate(xAxisDuration: 1.0, yAxisDuration: 0.0) call, with Charts 3.2.0 on the reported Swift 4.2 and iOS 12 setup. Compare the animation with the previous Charts version and determine whether the choppiness is reproducible; done means the same chart animates smoothly without changing the reported data setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100