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

Chart mouse hover (tooltip) event bubbling.

2 Answers 58 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 18 Oct 2016, 06:24 AM

Hi,

[MVC 4.0  C# + Razor,  VS 2015 , Kendo Version: 2016.2.714.545]

I draw scatter (X-Y Plot) chart with lots of data points, Assigned tooltip on each points, which works perfectly fine. But problem is when i draw rectangle on chart tooltip is not working (for obvious reason) for point under rectangle for rest of point it works.

I used kendo.drawing API for drawing rectangle on chart... On Chart Render method. "chart.surface.draw(myPath);"

Drawing object is with opacity 20% , means we can see all points on graph under drawing but as mouse hover event catch by rectangle not by series point tooltip won't appear. 

Question: How can pass mouse hover event to series point under drawn rectangle?

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Danail Vasilev
Telerik team
answered on 20 Oct 2016, 05:20 AM
Hello Sunil,

Instead of the following code:
chart.surface.draw(path);

You can use that one:
var group = new draw.Group({
  zIndex: -10
});
group.append(path);
chart._plotArea.appendVisual(group);

A fully runnable dojo sample is available here - http://dojo.telerik.com/ucOhI

Regards,
Danail Vasilev
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
Sunil
Top achievements
Rank 1
answered on 24 Oct 2016, 02:17 AM
Working perfectly. Thank you,
Tags
Charts
Asked by
Sunil
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Sunil
Top achievements
Rank 1
Share this question
or