MPAndroidChart
MPAndroidChart copied to clipboard
X-Axis Multiple Line Labels

I want to display my X Axis this way, I need to render two lines of text with different text sizes.
I am also trying to do the same.Can anyone help?
yes.. only PhilJay helps for that. @sushmagiri
Is it done ? @Rohfosho @sushmagiri if you can help it would be greatt.
@Rohfosho @sushmagiri @Akshay2693 Do you realize the way like this? can you help me ?
There's a PR for multiline axis labels https://github.com/PhilJay/MPAndroidChart/pull/3190 However it does not support different fonts/font sizes.
HHMMM... a very nice improvement this is!
But I wonder what the best way to solve this is. I've already closed another PR which just split single strings into lines by \n characters, but that doesn't offer much more customization. I'll look into this further and see if I can think up a better solution than just adding support for \n in strings.
HHMMM... a very nice improvement this is!
But I wonder what the best way to solve this is. I've already closed another PR which just split single strings into lines by
\ncharacters, but that doesn't offer much more customization. I'll look into this further and see if I can think up a better solution than just adding support for\nin strings.
Customization is possible with Spannables and you can do quite a lot with them. Problem is that all labels returns String, but should CharSequence. To replace all String with CharSequence is non-breaking change, so I think this shouldn't be a problem.
Any update on this?
+1
+1
+1
+1
+1