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
1065
Identifying each shape and clicking on each shape
posted

Hi All,

From the samples based on the mouse move we are able to get the info but can we identify the particular shape? Can we have a click event for that shape to drill down to lower level? Are these already available with this version? If so can you post the code snippet.

Thanks in Advance,

Pavan

  • 1775
    Suggested Answer
    posted

    Hi, Pavan

    Please, look at the Shape Selection sample from our online samples browser. It shows you how to get the data bound to the shape that the user has clicked on.

    In general, you need to attach a handler to the seriesMouseLeftButtonUp, or  seriesMouseLeftButtonDown events. The ui argument passed to the event handler contains a property called item which contains the data bound to the shape that the user clicked.

    Cheers, Lazar