MPAndroidChart
MPAndroidChart copied to clipboard
No data text
Hey there!
I'm having trouble with the no data text on PieCharts - I can't get rid of it! I've tried
chart.setNoDataText(""); chart.setNoDataTextDescription(""); chart.invalidate();
after data has been set, and tried it before data's set as well, but the text is still there. I've also tried grabbing the info paint object, and setting the colour to transparent, but that didn't work either:
Paint paint = chart.getPaint(Chart.PAINT_INFO); paint.setColor(Color.TRANSPARENT); chart.setPaint(paint, Chart.PAINT_INFO);
Any suggestions?
Thanks!
please try: ... chart.setNoDataText(""); chart.invalidate(); ...