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
230
Freeze Crosshair
posted

Hi,

I am using the xamWebChart control to display time series values with the scatterline chart type. I am using the vertical crosshair to enable the end user to figure out the values behind the series which are displayed on top of the chart at other controls.

The crosshairs always moving with the mouse cursor. But I want to enable the end user that he can do a single left click on the chart to stop the movement and just to freeze the vertical crosshair on the current position. With an additional left click the vertical crosshair will be picked up again to the "normal" behavior.

Is there any way to do this? Any help would be appreciated.

Johannes

Parents
No Data
Reply
  • 30692
    Verified Answer
    Offline posted

    Hmm... I don't think the chart currently supports this functionality.

    One thing that might work is to, on a click, locate the visual element that represents the crosshair in the visual tree and try to get its position relative to the chart element, and then add a line to a layer on top of the chart, disabling the crosshair until the user clicks again. Then, when the user clicks again, reactivate the crosshair and remove the line from the layer above.

    -Graham

Children