diff --git a/ChartsDemo/Swift/Demos/LineChart1ViewController.swift b/ChartsDemo/Swift/Demos/LineChart1ViewController.swift index 6f34b8b763..482190aa76 100644 --- a/ChartsDemo/Swift/Demos/LineChart1ViewController.swift +++ b/ChartsDemo/Swift/Demos/LineChart1ViewController.swift @@ -99,7 +99,7 @@ class LineChart1ViewController: DemoBaseViewController { } override func updateChartData() { - if self.shouldHideData { + guard !self.shouldHideData else { chartView.data = nil return }