Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: MouseOver triggered instead of elementClick and chartClick #13

Open
riksof-anas opened this issue May 19, 2017 · 0 comments
Open

Comments

@riksof-anas
Copy link

riksof-anas commented May 19, 2017

I have a pie chart that triggers mouse over while we are tapping a chart and it shows tooltip, where as its working fine on android browsers. following is my code how I've dispatched these events

  chart.pie.dispatch.on('chartClick', function OnChartClickPieChart( e ) {
    me.redirect( e.data );
  });

  chart.pie.dispatch.on('elementClick', function OnElementClickPieChart( e ) {
    me.redirect( e.data );
  });

what works in my case for iOS browsers is this,

  chart.pie.dispatch.on( 'elementMouseover', function OnMouseOverChart( e ) {
    me.redirect( e.data );
  });

but it will create issues for web and android browsers for obvious reasons.

http://plnkr.co/edit/T4i7Zh?p=preview
it only works on android and web browsers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant