Mpandroidchart: How to remove the Description-"No chart data available"??

Created on 19 Jul 2016  路  4Comments  路  Source: PhilJay/MPAndroidChart

device-2016-07-19-162922

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.

Most helpful comment

chart.setNoDataText("")

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vishvendu picture vishvendu  路  3Comments

galex picture galex  路  3Comments

SutharRohit picture SutharRohit  路  3Comments

botondbutuza picture botondbutuza  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments