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
3590
Is there a built-in/nice way to popup a tool tip containing the Y value for all series added to a XamDataChart based on mouse position?
posted

I had this working in Silverlight about 2 years ago using a sample provided by Graham Murray but that sample does not seem to work the same in the WPF XamDataChart. Before I try to make the modifications to get this to work I wanted to see if anything has been added that enables this to work efficiently?

Right now it is implemented as a behavior that attaches when the mouse enters the chart,  it takes the current x position of the mouse and translates that to a datetime based on the x-axis. Then for each series it find the closest element in the itemsource to that datetime and adds them to a collection thenthere is a separate behavior that displays that collection in a tooltip style. The only problem Ihad with this method is if there are a lot of points in each series the looping take a while and everything becomes choppy. 

Is there a better way now?

Parents
  • 35319
    posted

    Hello Mike,

     

    I have been looking through your post and I am not completely sure how exactly is organized Graham’s sample application. Would you please attach it or give me a link to the forum thread where he has already attached it.

     

    Looking forward to hearing from you.

Reply Children
No Data