Chart tooltip with SnapToClosestPoint=True blinks if rendered under mouse pointer

1 Answer 245 Views
Chart
Collin
Top achievements
Rank 1
Iron
Collin asked on 29 Apr 2021, 11:04 PM | edited on 29 Apr 2021, 11:11 PM

We've got a RadCartesianChart with a BarSeries. We added the ChartTooltipBehaviour with a custom ContentTemplate. It's difficult to hover the mouse over bars with very small or zero values to get the tooltip to show, so I enabled `SnapToClosestPoint` for the tooltip. This works great for getting the tooltip to appear when hovering in the area above a bar, but if the tooltip gets rendered at a location where the mouse pointer is inside the tooltip, then the tooltip appears, disappears, appears, disappears, etc.

Has anyone else run into this issue? Anyone solved it?

1 Answer, 1 is accepted

Sort by
1
Accepted
Collin
Top achievements
Rank 1
Iron
answered on 01 May 2021, 10:04 PM
Nevermind. I just needed to set `IsHitTestVisible="False"` on the root element in the content template. Easy peasy.
Tags
Chart
Asked by
Collin
Top achievements
Rank 1
Iron
Answers by
Collin
Top achievements
Rank 1
Iron
Share this question
or