سؤال

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