plotly / plotly/plotly.js

[FEATURE]: Highlight data feature when selected in the Legend

Open
#7,561 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

cs feature P2
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Description

When a user selects a feature in the legend of a visualization, it highlights the selected feature and makes the others more dim. This would enable viewers of the visualization to compare the features with particular focus on the feature they selected.

Why should this feature be added?

It is possible to achieve similar results in a Dash app through a clientside callback, but having this feature would enable users to achieve a result in a simpler manner. Additionally, this is already a feature in Tableau.

Mocks/Designs
Image
Notes

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

No files, tests, or entry points are identified in the issue. Start by tracing how legend selection is handled in plotly.js, then define the behavior against the provided mock: the selected feature should be highlighted while the others become dimmer, with coverage for the supported visualization types.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.