Mpandroidchart: is there any way to start drawing x-axis values with some padding

Created on 5 Mar 2015  路  2Comments  路  Source: PhilJay/MPAndroidChart

Hi,
Is there any way to start drawing x-axis value little space from bottom(x-axis line) and left(y-axis line) for Line and BarChart ??

As red marks in screenshots to display space.
screenshot_2015 03 05 16 01 03 - 2

Most helpful comment

@PhilJay Adding fake value will affect the labels on X-Axis. Is there any better work around?
And how to treat with Y-axis spacing? This cannot simply be resolved by adding a value.
Is there any property like "set...Offset/Spacing"?

All 2 comments

Well, simply add 1 more x-value on both sides than you need:

xvals.add("");

// loop and add the "real" values

xvals.add("");

@PhilJay Adding fake value will affect the labels on X-Axis. Is there any better work around?
And how to treat with Y-axis spacing? This cannot simply be resolved by adding a value.
Is there any property like "set...Offset/Spacing"?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chathudan picture chathudan  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments

galex picture galex  路  3Comments

ChenZeFengHi picture ChenZeFengHi  路  3Comments

andreyfel picture andreyfel  路  3Comments