
Whenever i load my page on my phone then initially this line is shown on the page then the chart data is loaded.How to remove this line-"No chart data available".
I have tried using setNoDataTextDescription(""),but it is not working.
chart.setNoDataText("")
@PhilJay how to change text color for no data text???
You can set the textcolor for the noDataText by using the following code:
lineChart.setNoDataTextColor(color);
You gotta be kidding me. The amount of people here with seemingly no coding experience is ridiculous.
You don't literally copy+paste char. setNoDataText("") and expect the problem to fix itself. I've edited the answer by @PhilJay and deleted all the spam to clean this issue up.
And yes, the original answer was a typo, that's why I edited it.
Most helpful comment
chart.setNoDataText("")