Dataitemmouseover event is not happening to doughnet charts, when the mouse hover the text of doughnet slice. In a post it is suggested to set the textblocks IsHitTestVisible to false. I did the same. But still no improvement. When I debugged found that, the only textblock in the doughnet chart is chart caption.
Help me on this.
Try removing the conditional on "applied"
It shouldnt be too bad to keep running that code if its only every time the mouse enters the chart rather than over it. You are having a timing issue were the
MakeAllTextBlocksNonHittable
function is being run before the data is actually rendered to the chart. So one solution is to change:
private void DoughnutChart_MouseEnter(object sender, MouseEventArgs e)
{
if (!applied)
MakeAllTextBlocksNonHittable(sender as FrameworkElement);
applied = true;
}
to:
-Graham
Attached the code here.
Pls let me know whats wrong with this code.
Just to confirm, you tried this workaround? http://forums.infragistics.com/forums/p/34228/198768.aspx#198768
If this didn't work, is it possible for you to provide some sample code?