Plotly.js: Hoverdata undefined when animating.

Created on 28 Dec 2016  Â·  6Comments  Â·  Source: plotly/plotly.js

Investigating the cause of failure for plotly_click to work sometimes when animations are taking place. Tracing through things:

  1. Fx.click fires
  2. gd._hoverdata is undefined sometimes

Investigating the further causes…

cc @bpostlethwaite

bug

All 6 comments

I'm having a lot of trouble coming up with a sequence of events that reproduces this 100% of the time, but the problem definitely seems to be the way hoverdata is set. It seems like maybe it's set on mousemove and the used on click. Need to investigate further. I suspect the cause is that I'm simply failing to set it 100% of the time when animation changes the hoverdata.

cc @etpinard I might need some help to get to the bottom of this (tomorrow)

cc @etpinard I might need some help to get to the bottom of this (tomorrow)

I hope 8 days later is ok too :smile:

Haha, yup!

Update. Have isolated a better example. Working on debugging.

@rreusser does https://github.com/plotly/plotly.js/pull/1304 indeed close this issue?

I'll try to do a better job of catching related issues!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maxwell8888 picture maxwell8888  Â·  3Comments

danielsamuels picture danielsamuels  Â·  3Comments

mithi picture mithi  Â·  3Comments

nicolaskruchten picture nicolaskruchten  Â·  3Comments

empet picture empet  Â·  3Comments