labelalias should have the option to not affect hover labels or unified hover title
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
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.
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 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.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100