Fix charts

This commit is contained in:
Ilya Laktyushin
2020-03-23 17:34:23 +04:00
parent 13cd7a2ab6
commit 7d7ccbee75
6 changed files with 22 additions and 21 deletions

View File

@@ -51,7 +51,7 @@ class BaseChartRenderer: ChartViewRenderer {
lazy var horizontalRange = AnimationController<ClosedRange<CGFloat>>(current: 0...1, refreshClosure: refreshClosure)
lazy var verticalRange = AnimationController<ClosedRange<CGFloat>>(current: 0...1, refreshClosure: refreshClosure)
func setup(verticalRange: ClosedRange<CGFloat>, animated: Bool, timeFunction: TimeFunction? = nil) {
func setup(verticalRange: ClosedRange<CGFloat>, animated: Bool, timeFunction: TimeFunction? = nil) {
guard self.verticalRange.end != verticalRange else {
self.verticalRange.timeFunction = timeFunction ?? .linear
return