質問

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