문제

I added this code

 DataRenderer.setLegendTextSize(0);

to remove the LegendText but I want to remove the small rectangles which appears in the following image

enter image description here

How can I do that ?

and what is the name legend means in this context ?

도움이 되었습니까?

해결책

Try this

renderer.setShowLegend(false);

where renderer is XYMultipleSeriesRenderer .

For alligning values on bar

renderer.setChartValuesTextAlign(Paint.Align.CENTER);

where renderer is XYSeriesRenderer

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top