neobie
neobie

Reputation: 2910

How to set chart height closer to bottom using AChartEngine?

enter image description here

Refer to the image above. In AChartEngine, although Zoom Buttons are hidden using method setZoomButtonsVisible(false), it leaves a large space between the X-axis to the bottom.

How do I make the chart stick to the bottom? I have tried many methods without success.

Upvotes: 2

Views: 1068

Answers (1)

Dan D.
Dan D.

Reputation: 32391

There are multiple way to do this. Please see a few of them below:

  • Set the height of the legend manually: renderer.setLegendHeight(height);

  • Make the legend size itself to occupy the needed space: renderer.setFitLegend(true);

  • Don't show the legend at all: renderer.setShowLegend(false);

Upvotes: 2

Related Questions