-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiline value labels on BarChart. #3826
Comments
Try adding text alignment attribute to what you sent as
|
@anton-filimonov thank you for response. Unfortunately, it didn't help. The same result as on screenshot. |
It helped me to use drawMultilineText methods from ChartUtils. But they marked with internal. So I had to copy them. I would prefer another way to have multiline value labels. |
you have to override the |
I want to use multiline value labels above chart bars. If I put multiline value (with '\n' inside) value overlaps bar. So I subclassed BarChartRenderer and added offset to the y position of the point.
So now I have 2 lines labels above bars. But they are not center aligned because the point calculates wrong.
Is there's a way to have multiline labels above bars center aligned?
Charts version 3.2.1
Xcode version: 10.0
Swift version: 4.2
ios 11, 12
The text was updated successfully, but these errors were encountered: