android - Using achartengine to draw a bar graph but my last bar is squeezed out? -


When drawing the bar chart, I end up with the last time being squeezed out of the frame, even if the position of X - Xis is vertical or horizontal I have disabled panning, maybe it has something to do with it, but by enabling it is not an option.

It looks like:

article screenshot

I have tried to change the width of the margin / bar and add a dummy blank value at the end of the dataset, but is there a setting to decide whether the problem persists?

Edit - I found that I can actually add a dummy blank entry at the end of the series and it solves the problem (long story short i forgot that I was limiting the length of X-X), but this is an ugly solution, if someone knows better, please do not hesitate to inform us!

Thanks in advance!

Half of the bar is outside the viewable part of the chart, your series < Set the setXAxisMax for code> .getMaxX +1 or 0.5 or equivalent YAxis usually resolves such issues is.

If you add a dummy value then you can find a small line under the graph.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -