plotly / plotly/plotly.R

Option to remove the white shadow in sankey type diagram

Open
#1,118 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plotly.js
Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

Brief description of the problem
Hi I need to have a cleaner version of sankey diagram but couldn't find the option in API doc.

The dom class name is text-shadow, but in the doc
There's no definition to include/exclude text shadow.

image

  plot_ly(
    type = "sankey",
    domain = c(
      x =  c(0,1),
      y =  c(0,1)
    ),
    orientation = "h",
    node = node,
    link = link,
    width = 2000,
    height = 3600) %>% 
  layout(
    title = "TBD",
    font = list(
      size = 10,
      color = 'white'
    ),
    plot_bgcolor = 'black',
    paper_bgcolor = 'black'
)

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 with the sankey chart entry point and the text-shadow DOM class described in the issue, then compare the R API documentation for layout and style options. Done means users can explicitly include or exclude the white shadow in a sankey diagram and the option is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
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.