What worked for me is to put this after setting all the data points of the chart.
chart.setDescription(""); chart.setNoDataText("No Chart Data"); // this is the top line chart.setNoDataTextDescription("..."); // this is one line below the no-data-text chart.invalidate();
source share