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
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);
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);