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

get current hovered series on radcartesianChart

2 Answers 26 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jyoti
Top achievements
Rank 1
Jyoti asked on 11 Dec 2018, 09:40 AM

I have a RadCartesianChart in that I am adding different series (Area/Line mainly)  and calculating datapoint on mouse hover .

I would like to prioritize to line series and calculate datapoint of Line series  if line series is over lapped with area series.

I can get the selected series if mouse click happened and chartBehavior is associated with RadCartesianChart , but looking for solution which give me current hovered series.

Is there any way in code behind or in event I can get which series of chart is currently hovered ?

appreciate your help

Regards,

Jyoti

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 14 Dec 2018, 08:03 AM
Hello Jyoti,

You can use couple of approaches to get the hovered series. The first one is to subscribe to the MouseMove event of the chart, and in the event handler check the IsMouseOver property of each series. If the IsMouseOver is True, then the series is hovered. The second approach is to use the MouseEnter and MouseLeave events of the series. 

You can also check the HoverMode property of the chart and see if this feature works for you.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Jyoti
Top achievements
Rank 1
answered on 17 Dec 2018, 12:08 PM

hi Martin,

Thanks so much for your answer, it worked. My bad I was looking at tougher approaches :(

Regards,

Jyoti 

Tags
ChartView
Asked by
Jyoti
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Jyoti
Top achievements
Rank 1
Share this question
or