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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

115261 Jan 8,2014 03:46 AM Jan 16,2014 04:17 AM WinRT 2
loading
Tags: General
Martin Scheibenreif
Asked On January 8, 2014 03:46 AM

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;
this.mySyncfusionChart.Series.Add(newFastLineSeries);

... 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

Martin Scheibenreif
Replied On January 15, 2014 11:16 AM

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

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

Hi,

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

Thanks
Shandhanu B

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.

;