wangyao5 / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

x labels and x-axis label gets cut off when setShowLegend(false) #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
setShowLegend(false) -> x labels + x-axis labels get cut off

I am using bar chart.

Original issue reported on code.google.com by jon.rog...@gmail.com on 10 Apr 2011 at 4:02

GoogleCodeExporter commented 9 years ago
After a
renderer.setShowLegend(false);
you can add the following code in order to avoid this issue:
int[] margins = renderer.getMargins();
margins[2] = (int) renderer.getLabelsTextSize() + 9;
renderer.setMargins(margins);

Original comment by dandrome...@gmail.com on 13 Apr 2011 at 6:38