plotly / plotly/plotly.js

zorder property changes trace color

Open
#7,235 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug cs P2
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

The zorder property changes the color of stacked line traces. The following code pens demonstrate the problem. The only change between the various charts is, that the zorder property has been added to the traces. This should not have any impact on the colouring, but it does.

Stacked line traces (working / without zorder)

image

Stacked line traces (broken / zorder=1 on first trace)

image

Stacked line traces (broken / zorder on all traces)

image

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 behavior using the three linked CodePen examples, comparing stacked line traces with and without zorder. Trace how zorder affects stacked-trace color assignment, then verify that adding zorder leaves the colors unchanged in all three cases.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.