plotly / plotly/plotly.js

support arrays of color and colorscale for line and fillcolor of `plotly.graph_objects.Scatter`

Open
#5,259 5 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

Coming from plotly.py. Since this is about the plotly.graph_objects module, the issue is posted here.

Currently, only plotly.graph_objects.Scatter.marker, plotly.graph_objects.Scatter.marker.gradient and plotly.graph_objects.Scatter.marker.line supports assigning colors by arrays of color along with colorscale.

Could the same color-setting techniques be allowed for plotly.graph_objects.Scatter.line and plotly.graph_objects.Scatter.fillcolor as well?

p.s. Links to the current documentation:

  1. The following supports arrays of color with colorscale:
  1. The following doesn't support arrays of color with colorscale:

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 tracing how Scatter.marker, marker.gradient, and marker.line accept color arrays with a colorscale, then compare the handling of Scatter.line and fillcolor. Confirm the expected behavior in the existing documentation links and add coverage showing arrays work for both properties without breaking scalar colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.