labelalias should have the option to not affect hover labels or unified hover title
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- data-visualization
Research direction
Start by locating the handling of xaxis.labelalias, yaxis.labelalias, hover labels, and unifiedhovertitle in the repository. Determine how the option could limit aliases to axis tick labels, then verify that hover labels and unified hover titles retain raw values unless explicitly overridden; add or update tests for both axis types and dynamic data mappings.
Written by the indexing model from the issue text.
Description
Currently, xaxis.labelalias/yaxis.labelalias changes both the axis tick labels and the hover labels / unified hover title. In some use cases, users want to display friendly axis labels but keep the hover title showing the raw data value.
Using tickvals/ticktext is a workaround but requires manually updating tick mappings if the axis data changes dynamically.
The new unifiedhovertitle.text allows formatting of the hover title, but it does not support mapping from x/y values to aliases.
Proposed solution:
Add an option for labelalias to only affect axis ticks. Hover labels and unified hover title should still display the underlying raw value unless explicitly overridden.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
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.
More from plotly/plotly.py
-
P3 size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug P1
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
feature P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
feature P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in plotly/plotly.py
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·