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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SelectedItem property in legend

Thread ID:

Created:

Updated:

Platform:

Replies:

116534 Jun 6,2014 12:30 PM UTC Jun 11,2014 10:27 AM UTC Windows Phone 3
loading
Tags: Chart
Alexey Stachikov
Asked On June 6, 2014 12:30 PM UTC

Is it possible to introduce "SelectedItem" in chart legend?
The main idea is to change legend item template when selecting item in legend or when selecting appropriate item on the chart

Mohammed Azarudeen [Syncfusion]
Replied On June 9, 2014 10:19 AM UTC

Hi Alexey,

 

We have analyzed your requirement and you can achieve your requirement by setting the property CheckBoxVisibility as visible for the chart legend as below:

 

CodeSnippet[C#]:

   <charts:ChartLegend CheckBoxVisibility="Visible"/>

 

We have prepared a sample based on this and the sample can be downloaded from the following location:

 

Note: If you want a selected item in legend by changing the legend item template, we can able to achieve this by workaround.

 

Please let us know if this helps.

 

Regards,

Mohammed Azarudeen


Attachment: LegendItem_9fc21903.zip

Alexey Stachikov
Replied On June 9, 2014 10:42 AM UTC

Attached sample is using several LineSeries, but I have PieChart.
Also it would be great to get some extra help with this problem

Sheik Syed Abthaheer M [Syncfusion]
Replied On June 11, 2014 10:27 AM UTC

Hi Alexey,

Thanks for your response.

The Chart Legend in pie series displayed based on series segment. Each legend item represents the each segment in pie series. Also Checkbox in each legend bind with the Pie series. So,If we uncheck the any one checkbox of the legend item, then whole pie series visible will be collapse. This is default behavior of pie series.

Also we would like to let you know that, currently we do not have support to get selected item or selected index while select the Chart legend item.

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

Regards,
M. Sheik


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.

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

;