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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change visibility of LegendItems of a chart (WinRT)

Thread ID:





115261 Jan 8,2014 08:46 AM UTC Jan 16,2014 09:17 AM UTC WinRT 2
Tags: General
Martin Scheibenreif
Asked On January 8, 2014 08:46 AM UTC

Hello SyncFusion-Team!

I have implemented a winrt-SfChart that displays several FastLineSeries. By clicking on buttons, specific lines can be made visible and hidden. It already works for the lines themselves, simply by setting the IsSeriesVisible-property to true or false, but i would also like to hide and show the corresponding LegendItems for the series. I tried setting the VisibilityOnLegend-property to collapsed, but unfortunately this does nothing. It seems as if this behavious can't be changed, after set once. For example if i add the series like this...

newFastLineSeries.VisibilityOnLegend = Windows.UI.Xaml.Visibility.Collapsed;

... it does not show on the legend, as excpected. But when i set the VisibilityOnLegend-property of the line to Visible later, it still does not appear on the legend. Is this behaviour intentional? Or am i just missing something? :)


Martin Scheibenreif
Replied On January 15, 2014 04:16 PM UTC

Ok nevermind, i found a solution to my problem ;)

Shandhanu B [Syncfusion]
Replied On January 16, 2014 09:17 AM UTC


Sorry for delay in response, Thank you for contacting Syncfusion.
We are glad to here that you have solved the problem.

Shandhanu B


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon