Question

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 ?

Était-ce utile?

La solution

Try this

renderer.setShowLegend(false);

where renderer is XYMultipleSeriesRenderer .

For alligning values on bar

renderer.setChartValuesTextAlign(Paint.Align.CENTER);

where renderer is XYSeriesRenderer

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top