Hi,
If I update from SfChart version 14.2.0.28 to the latest one (14.3.0.52), TooltipTemplate gets some issues on iOS.
While it was working well with version 14.2.0.28, with the latest one the tooltip is just empty. Same code, nothing is changed but the version.
On Android it works well, as before. On iOS the issue comes up. Attached you will find two images that shows the tooltip working well on Android and the empty one on iOS.
The code to generate the DataTemplate is the following:
DataTemplate template = new DataTemplate(() => {
StackLayout stack = new StackLayout() { BackgroundColor = Color.White, Padding = new Thickness(5, 5, 5, 5) };
Label category = new Label() { BackgroundColor = Color.White, TextColor = Color.Black, FontAttributes = FontAttributes.Bold };
if (!xAxisDate)
{
category.SetBinding(Label.TextProperty, "XValue",
stringFormat: "{0}:");
}
else
{
category.SetBinding(Label.TextProperty, "XValue",
stringFormat: "{0:d}:");
}
Label value = new Label() { BackgroundColor = Color.White, TextColor = Color.Black };
value.SetBinding(Label.TextProperty, "YValue", converter: new CurrencyConverter());
stack.Children.Add(category);
stack.Children.Add(value);
Label description = new Label() { BackgroundColor = Color.White, TextColor = Color.Black };
if (customModel)
{
description.SetBinding(Label.TextProperty,
"Description");
stack.Children.Add(description);
}
return stack;
});
Please help!
Thanks,
Stefano
Attachment:
TooltipTemplate_issue_cfab1c2d.zip