Color array or color scale do not work in patterned markers hover x unified hovermode
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
When using both a colorscale and pattern on a marker in x unified hovermode on a bar chart, the color is missing from the hover:
Similarly, when using a color array in the fgcolor/bgcolor, the markers are correctly colored, but the hover only takes the first in the array:
Example colorscale: https://codepen.io/jev20/pen/yLWgGyQ
Example color array: https://codepen.io/jev20/pen/pomRQqK
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 reproducing the colorscale and color-array cases from the two linked CodePen examples in x unified hovermode on a bar chart. Trace how patterned marker colors are represented in the hover and verify that the hover displays the matching colorscale or array value for each marker rather than omitting it or using the first value.
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
- 45/100