We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

TooltipTemplate issues with iOS

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

2 Replies

SP Stefano Passatordi November 2, 2016 04:00 PM UTC

I forgot to say that it happens only with PieChart and DoughnutChart. LineChart and Column work well.

Thanks,
Stefano


SG Sivaram Ganesan Syncfusion Team November 3, 2016 01:02 PM UTC

Hi Stefano,

We have created a support incident under your account to track the status of this query. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents   


Regards,
Jaikrishna C


Loader.
Live Chat Icon For mobile
Up arrow icon