plotly / plotly/plotly.js

toggleHover property is not working when using modeBarButtonsToAdd method with Pie Charts config

Open
#6,309 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

With Plotly version 2.x.x there is no toggleHover option available for Pie Charts when using modeBarButtonsToAdd method.
With plotly Version 1.xx it was available, as you can see in my Codepen by just uncommenting the script.

When I looked through types files I see that toggleHover is still there as an ModeBarDefaultButtons type, but it has no effect at all.

So question from me - How can I add toggleHover option for Pie Charts in Plotly 2.XX?
Greetings

https://codepen.io/arielkuzminski/pen/zYjxbQx

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the linked CodePen with Plotly 2.x and compare it with the Plotly 1.x behavior. Inspect the modeBarButtonsToAdd handling and the type definitions where toggleHover is listed as a ModeBarDefaultButtons type. Done means toggleHover works for pie charts when added through modeBarButtonsToAdd, or its supported replacement is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.