Chart mouse hover (tooltip) event bubbling.

3 posts, 1 answers
  1. Sunil
    Sunil  avatar
    8 posts
    Member since:
    Jul 2015

    Posted 18 Oct Link to this post

    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. Answer
    Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 20 Oct Link to this post

    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.
  3. Kendo UI is VS 2017 Ready
  4. Sunil
    Sunil  avatar
    8 posts
    Member since:
    Jul 2015

    Posted 23 Oct Link to this post

    Working perfectly. Thank you,
Back to Top