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
25
How to capture click event on legend of xamChart?
posted

Hi, I'm using NetAdvantage for .NET 2009.1. I'm using the xamChart to display several series of data. As the data is chronological I'm using the chartType ScatterLine. Unfortunately, many of these series are very similar so it's difficult to tell exactly where each point falls. Ultimately, what  like to do is toggle the different series on and off by clicking on the corrisponding item in the legend. So far I've managed to use the MouseUp event to capture when the legend is clicked on but at the time of the click the legend.items collection is empty. Furthermore, I can't seem to figure what item the mouse is even over.

I suspect there's a better way to go about this. Any help would be much appreciated.

Parents Reply Children
No Data