MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Chart.mNoDataText is still shown on canvas though mDataNotSet has changed

Open Jasper009-So opened this issue 10 years ago • 1 comments

I wanna report a bug: Chart.mNoDataText is still shown on canvas though Chart.mDataNotSet has changed with ChartData::addDataSet(someSet) well done.

Jasper009-So avatar Dec 08 '15 03:12 Jasper009-So

I took a workaround to hide the text ... LineDataSet set = data.getDataSetByIndex(0); if (set == null) { set = createSet(); data.addDataSet(set); //clear noDataText though Chart.mDataNotSet has changed mChart.setNoDataText(""); mChart.invalidate(); // } else { .... } ...

Jasper009-So avatar Dec 08 '15 05:12 Jasper009-So