You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of showing the 'no data available' perspective of the chart, with version 2.1.5 of Charts the view now crashes when there are no data items to be shown...when the chart is instructed to draw the circles on the line (the no data available view shows correctly if drawCirclesEnabled = false).
LineChartRenderer.drawCircles() is the culprit, particularly the forced unwrap on the following line within drawCircles()
let entryFrom = dataSet.entryForXIndex(_minX)!
This can be protected against by adjusting the test above this line to include a check for 0 data entries:
Instead of showing the 'no data available' perspective of the chart, with version 2.1.5 of Charts the view now crashes when there are no data items to be shown...when the chart is instructed to draw the circles on the line (the no data available view shows correctly if drawCirclesEnabled = false).
LineChartRenderer.drawCircles() is the culprit, particularly the forced unwrap on the following line within drawCircles()
This can be protected against by adjusting the test above this line to include a check for 0 data entries:
The text was updated successfully, but these errors were encountered: