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

SelectedItem property in legend

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

3 Replies

MA Mohammed Azarudeen Syncfusion Team 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:



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



Mohammed Azarudeen

Attachment: LegendItem_9fc21903.zip

AS Alexey Stachikov 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

SS Sheik Syed Abthaheer M Syncfusion Team 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.

M. Sheik

Live Chat Icon For mobile
Up arrow icon