plotly / plotly/plotly.js

`hoveron: 'fills'` does not work for stacked area chart

Open
#6,325 0 comments 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

Using hoveron: 'fills' with a stacked area chart doesn't result in hover tooltips being shown when hovering over the filled in areas.

Plotly.newPlot('test', [
	{x: [1,2,3], y: [2,1,4], stackgroup: 'one', hoveron: 'fills', name: "a"},
	{x: [1,2,3], y: [1,1,2], stackgroup: 'one', hoveron: 'fills', name: "b"},
]);

Here's a JSFiddle illustrating the issue - hovering over the blue or orange filled in areas has no effect.

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

Reproduce the issue with the JavaScript snippet or linked JSFiddle, then trace the stacked area chart hover handling for hoveron: 'fills'. Done means hovering over each filled stacked area displays the expected tooltip, without changing behavior for other hover modes.

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.