plotly / plotly/plotly.js

enable hover label text background colour to be configurable

Open
#6,637 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I have a plotly.js web app that uses plots with ~20 series, each with a unique 'dark mode compatible' colour. However when hovering over each of the plot lines, the series name in the label that pops up upon hover is hard to read, as the colours are configured for dark mode.

In the image below, I want to be able to change the background colour behind the PID_Angle_Ou... label to a dark-mode compatible colour (e.g. dark gray), or make it transparent.

image

From what I've found, I can only change the background colour of the (116, 243.3177) label, but I really need to be able to change the background of the series name.

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

The issue names no source file, test, or entry point. Start by locating the hover-label rendering and the existing option that changes the coordinate label background; determine where the series-name label is styled. Done means that background can be configured for the series name, including a dark or transparent value, with coverage for the requested behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.