Skip to content

Commit

Permalink
call setNeedsDisplay() here to trigger render noDataText (#3198)
Browse files Browse the repository at this point in the history
when chart view already rendered, if updating the chartData with nil, it will not rerender, and display the old content
  • Loading branch information
liuxuan30 authored and jjatie committed Jan 21, 2018
1 parent 43ccf8e commit 4fbeb9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Charts/Charts/ChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ open class ChartViewBase: NSUIView, ChartDataProvider, AnimatorDelegate

guard let _data = _data else
{
setNeedsDisplay()
return
}

Expand Down

0 comments on commit 4fbeb9d

Please sign in to comment.