From 4fbeb9de992b27d6c1d3359054ee8b45420dbc14 Mon Sep 17 00:00:00 2001 From: Xuan Date: Mon, 22 Jan 2018 02:07:43 +0800 Subject: [PATCH] call setNeedsDisplay() here to trigger render noDataText (#3198) when chart view already rendered, if updating the chartData with nil, it will not rerender, and display the old content --- Source/Charts/Charts/ChartViewBase.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Charts/Charts/ChartViewBase.swift b/Source/Charts/Charts/ChartViewBase.swift index a45eaa2493..b1c6d503ca 100644 --- a/Source/Charts/Charts/ChartViewBase.swift +++ b/Source/Charts/Charts/ChartViewBase.swift @@ -198,6 +198,7 @@ open class ChartViewBase: NSUIView, ChartDataProvider, AnimatorDelegate guard let _data = _data else { + setNeedsDisplay() return }