Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
click event on the Legend of XamwebChart line chart
posted

Hi!

I am using XamWebChart control in my Silverlight 3 application. I want to have a click event on the legend. Can you please suggest how to achieve this. Please provide sample code.

Thanks and regards,

Usha.

 

Parents
No Data
Reply
  • 26458
    Suggested Answer
    Offline posted

    Since the chart's legend is a Control, it has all the events of a control, including mouse events. You can handle MouseLeftButtonUp event same way you would for any control.

    <igChart:XamWebChart.Legend>
         <igChart:Legend Width="150" MouseLeftButtonUp="Legend_MouseLeftButtonUp"/>
    </igChart:XamWebChart.Legend>

Children