AlohaKit.Controls icon indicating copy to clipboard operation
AlohaKit.Controls copied to clipboard

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

Open joyusjose opened this issue 3 years ago • 2 comments

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.

joyusjose avatar Dec 08 '22 11:12 joyusjose

this is still the same, no solution >(

ericgutierre01 avatar Apr 19 '23 23:04 ericgutierre01

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

xufeitt avatar Jun 11 '23 12:06 xufeitt