diff --git a/Source/Charts/Charts/ChartViewBase.swift b/Source/Charts/Charts/ChartViewBase.swift index 297f3bb239..eaa5e8f8d7 100755 --- a/Source/Charts/Charts/ChartViewBase.swift +++ b/Source/Charts/Charts/ChartViewBase.swift @@ -200,10 +200,6 @@ open class ChartViewBase: NSUIView, ChartDataProvider, AnimatorDelegate public override init(frame: CGRect) { super.init(frame: frame) - - #if os(iOS) - self.backgroundColor = NSUIColor.clear - #endif initialize() } @@ -221,6 +217,10 @@ open class ChartViewBase: NSUIView, ChartDataProvider, AnimatorDelegate internal func initialize() { + #if os(iOS) + self.backgroundColor = NSUIColor.clear + #endif + _animator = Animator() _animator.delegate = self