plotly / plotly/plotly.js

Offer JavaScript support for built-in colorways or scales defined by name

Open
#5,519 4 comments 0 reactions 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

It would be convenient not to have to manually define the colorway or scales for certain plots, such as bubble plots, with an array of colors. I'd like to specify it via import or string, for example:

layout = {
              xaxis: {
                range: ...
              },
              yaxis: {
                range: ...
              },
              title: 'My plot',
              colorway: ['#f3cec9', '#e7a4b6', '#cd7eaf', '#a262a9', '#6f4d96', '#3d3b72', '#182844'], // Here is where I'd like to just specify a theme basically
           }

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

No file or test is named in the issue. Start by searching the repository for colorway handling and plot layout configuration, then review how built-in scales or themes could be named or imported. Done means a plot can select a built-in colorway or scale by name or import instead of supplying an array manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.