This is a migrated thread and some comments may be shown as answers.

Getting the X-Y values on mouseover

1 Answer 135 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jake
Top achievements
Rank 1
Jake asked on 27 Oct 2011, 01:50 PM
How would I get the X-Y values for a SeriesMapping on mouseover? I'd like to display the values somewhere other than a ToolTip, so enabling tooltips is not my solution. I'm using MVVM, so a codebehind solution, or any UI Element access (i.e. anything requiring System.Windows) is not allowable; however, I would like to be able to use these values in the ViewModel.

One solution I was considering was using a transparent CustomGridLine with a mouseMoved trigger attached; however, I'm not sure how I would access the SeriesMapping in the ViewModel without needing to use System.Windows to get the Chart itself first.

Thanks,

Jake

EDIT: I found this article, but it requires UIElement access: http://www.telerik.com/help/silverlight/radchart-howto-create-location-crosshair-for-radchart.html. I want to do something similar to this, except cutting out the need for Telerik.Windows namespace and adding snapping to the SeriesMappings on the chart.


1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 01 Nov 2011, 01:10 PM
Hi Jake,

The chart does not support such behavior. The closest approach is the one you have mentioned earlier in your post.

All the best,
Peshito
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Chart
Asked by
Jake
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or