Android achartengine text label margin and padding -


enter image description here

hi developers, have question: how can make gap between labels , bars smaller, i've tried setting margin of xymultipleseriesrenderer different range(both positive , negative), doesn't affect gap between labels , bars. , passing negative value renderer.setxlabelpadding() seems ignored - text labels on x axis since graph rotated 90%

i using achartengine 1.1.0, should latest.

here's section of code used manipulate apperance:

    renderer.setorientation(orientation.vertical); //horizontal bar-graph     renderer.clearxtextlabels();     renderer.setylabels(0); //remove units on y axis(the horizontal axis since graph has been rotated 90 degree)     renderer.setxlabels(0); //removes 'values' x-axis     renderer.setmargins(new int[]{10, 0, 90, 0}); //top, left, bottom, right. since horizontal bar graph, margins has been rotated clock-wise. setting them negative doesn't solve problem.      renderer.addxtextlabel(0.9, "average");     renderer.addxtextlabel(1.2, "maximum");     renderer.setxlabelspadding(-200f); //no effect     renderer.setylabelspadding(-200f); //no effect 

try render.setbarspacing(float); spacing between bars. used , worked.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -