java - MPAndroid Line Chart XAxis Label with formatter not splitting string in new line -


i using mpandroid line graph. using xaxis formatter display axis label. on x-axis have show date jan 2016(with new line between month , year), not overlap other text, month , year vertically aligned.

i using following code, it not able create new line in between white space of string "mmm yyyy"(like jan 2016, feb 2016).

xaxis.setvalueformatter(new iaxisvalueformatter() {         @override         public string getformattedvalue(float value, axisbase axis) {             return xaxisvaluemap.get((int)value).replaceall("\\s+",system.getproperty("line.separator"));         }     }); 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -