Home Forums Chart Support Shared tooltip – detect hovered element

Shared tooltip – detect hovered element

Viewing 2 posts - 1 through 2 (of 2 total)
  • #61511

    When I have a stacked column chart, and a shared tooltip, in the tooltip is there a way of detecting the element I am hovering over (e.g. so I can highlight that element in the tooltip content)?

    #61520

    @jhansen,

    You can use the mouseover event of the dataseries to detect which series is being hovered over, and use toolTip contentFormatter to style it accordingly.

    Highlight hovered over dataseries is shared tooltip

    Please take a look at this JSFiddle for a working example of the same.


    Team CanvasJS
    Ananya Deka

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.