Mpandroidchart: Multiline x labels

Created on 25 Feb 2015  路  4Comments  路  Source: PhilJay/MPAndroidChart

I have chart with dates as xvals. I put days of month as xvals, but i want second line as month name. I tried to put 14th xVal as "15 \n January", but it doesn't work. Is there any way to do this? @PhilJay

enhancement

Most helpful comment

Hi,
I modified the library to allow multiline label on the xAxis using \n

https://github.com/fabriziogueli/MPAndroidChart/tree/axis_multiline_labels

It is working right now but need further testing and maybe some code styling / adjustment.

XAxis xAxis = mChart.getXAxis(); xAxis.setMultiLineLabel(true);

All 4 comments

That is currently not possible, however, I might consider such a feature in the future.

Can we write X labels or Bar values in Vertical Manner..!

Hi PhilJay, can we highlight one xval, i.e. highlight today's date?

Hi,
I modified the library to allow multiline label on the xAxis using \n

https://github.com/fabriziogueli/MPAndroidChart/tree/axis_multiline_labels

It is working right now but need further testing and maybe some code styling / adjustment.

XAxis xAxis = mChart.getXAxis(); xAxis.setMultiLineLabel(true);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChenZeFengHi picture ChenZeFengHi  路  3Comments

Nima9Faraji picture Nima9Faraji  路  3Comments

manucheri picture manucheri  路  3Comments

SutharRohit picture SutharRohit  路  3Comments

Giammaofwar picture Giammaofwar  路  3Comments