Trace is invisible on de/activating via legend
Open
Nobody has claimed this yet.
bug
P3
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Steps to reproduce (use https://jsfiddle.net/5tf14onw/1/) (order is crucial!)
- I'm plotting several traces in a scatter plot.
- I double click one trace ("Hydro turbines and pumps" (call it x)) in legend to have an isolated view.
- I'm adding another trace ("Run-of-river" (call it y)).
- I deselect x.
- I deselect y. (On purpose, no trace visible now)
- I add x and deselect it immediately again and add it again
- Now I'm adding y. But it does not get displayed. Even though tooltips are shown for this trace when hovering.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked JSFiddle reproduction and follow the legend actions in the stated order. Investigate the trace visibility state after isolating, deselecting, and re-adding traces. Done means the newly added “Run-of-river” trace is displayed after the final legend actions, not merely available to tooltips.
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