I am using Android-MPChartLibrary for showing a LineChart. Empty view for LineChart
is showing "No chart data available" and "No data to display"
chart.setDescription("");
chart.setNoDataTextDescription("No data to display");
I just want it to say "No data to display" but not sure why it is showing both.
What worked for me was putting this after setting all the chart data points.
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();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With