Skip to content
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

Bar chart footer label is not visible in iOS but works fine in Android #47

Open
joyusjose opened this issue Dec 8, 2022 · 2 comments
Open
Labels
bug Something isn't working

Comments

@joyusjose
Copy link

Trying to implement a bar chart in MAUI app and seems working fine in android but footer label is not visible in iOS. Tried to set/ change FooterLabelsFontColor as well.

@jsuarezruiz jsuarezruiz added the bug Something isn't working label Dec 9, 2022
@ericgutierre01
Copy link

this is still the same, no solution >(

@xufeitt
Copy link

xufeitt commented Jun 11, 2023

Hi everyone

I have solved this problem.

var strSize = canvas.GetStringSize(text, Font, FooterLabelsTextSize);
bounds.Width = itemSize.Width;
bounds.Height = strSize.Height ;
canvas.DrawString(text, bounds, HorizontalAlignment.Center, VerticalAlignment.Center, TextFlow.ClipBounds);

Modify _bounds.Height = strSize.Height + 2 ;

bounds.height not enough height , that will do not diaplay the drawstring on IOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants