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.
Unfortunately, activation email could not send to your email. Please try again.

Series IsVisible property is not viewing current visibility state when toggling legend

Thread ID:

Created:

Updated:

Platform:

Replies:

129875 Apr 6,2017 04:32 PM Apr 14,2017 02:42 AM Xamarin.Forms 6
loading
Tags: SfChart
Xetal
Asked On April 6, 2017 04:32 PM

I would like to get visibility state of series in the code exaple below. I have set the property ToggleSeriesVisibility to legend and this works perfectly. But when I try to get current state it returns initial value.

                foreach (var series in chart.Series)
                {
                    var isVisible = series.IsVisible; // always true even though series is not visible
                }

If I set IsVisible manually in code, it changes the visibility of series and the code above works as expected.

Xetal
Replied On April 10, 2017 05:55 AM

Any ideas?

Saravana Pandian Murugan [Syncfusion]
Replied On April 10, 2017 08:56 AM

Hi Xetal,

Thanks for contacting Syncfusion support.

Currently we are validating this issue from our side and we will update you with more details in two business days (April 12, 2017).

Regards,
Saravana Pandian M.

Saravana Pandian Murugan [Syncfusion]
Replied On April 12, 2017 03:02 PM

Hi Xetal,

We have achieved your requirement using DependencyService in Xamarin.Forms Android platform. Please download the sample from below location.

Sample: http://www.syncfusion.com/downloads/support/forum/129875/ze/SeriesVisibilitySample1300676229

Note: For other platforms, We will update you the complete sample in one business day (April 13, 2017).

Regards,
Saravana Pandian M.

Saravana Pandian Murugan [Syncfusion]
Replied On April 13, 2017 12:24 PM

Hi Xetal,

We have modified the sample based on your requirement in which you can use SeriesVisiblity property in DoughnutSeriesExt class based on your need. Please download the sample from below location.

Sample: http://www.syncfusion.com/downloads/support/forum/129875/ze/SeriesVisibilitySample-2018928441

Please let us know, if you need any further assistance.

Regards,
Saravana Pandian M.


Xetal
Replied On April 13, 2017 12:28 PM

Thanks. It's working perfectly!

Parthiban Sundaram [Syncfusion]
Replied On April 14, 2017 02:42 AM

Hi Xetal,

Thanks for the update. We are glad to know that your issue has been resolved. Please get back to us if you need further assistance on this.

Regards,
Parthiban S

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;