plotly / plotly/plotly.js

Color array or color scale do not work in patterned markers hover x unified hovermode

Open
#7,008 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
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:
image

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:
image

Example colorscale: https://codepen.io/jev20/pen/yLWgGyQ
Example color array: https://codepen.io/jev20/pen/pomRQqK

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.