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