Skip to content

restyle makes it harder to hover on trace legend #893

@colinfang

Description

@colinfang

This is very weird, and it seems to only occur when legends is inside the main plot.

Without restyle, the cursor changes immediately when over on the legends.

http://codepen.io/anon/pen/LRPrgV

However with restyle, it requires a bit of luck to get cursor correctly hover on the legends.

 Plotly.restyle(graphDiv, {visible: [false, false, true, true]});
 Plotly.restyle(graphDiv, {showlegend: [false, false, true, true]});

http://codepen.io/anon/pen/JRPwaj

I am using Chrome

Activity

etpinard

etpinard commented on Sep 1, 2016

@etpinard
Contributor

Thanks for reporting

etpinard

etpinard commented on Sep 6, 2016

@etpinard
Contributor

This bug was introduced in 1.11.0

added this to the v1.17.0 milestone on Sep 6, 2016
self-assigned this
on Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @colinfang@etpinard

    Issue actions

      restyle makes it harder to hover on trace legend · Issue #893 · plotly/plotly.js