plotly / plotly/plotly.py

Parcoords line opacity, rgba color not working

Open
#2,699 7 comments 0 reactions 1 assignee View on GitHub

@LiamConnors is already working on this.

Since Jul 8, 2024.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

The documentation specifies that the parcoords' line argument color can be a an rgba string. This doesn't work though and the lines remain a solid color as if using only the rgb part.

newplot(3)

import plotly.express as px
import plotly.graph_objects as go

iris = px.data.iris()

fig = go.Figure(
 data=go.Parcoords(
    line_color="rgba(100,00,0,0.1)",
    dimensions=list([
        dict(label='sepal_length', values=iris.sepal_length),
        dict(label='sepal_width', values=iris.sepal_width),
        dict(tickvals=[1, 2, 3],
             label='species', values=iris.species_id,
             ticktext=iris.species_id.unique()),
    ]))
)

fig.write_html('parallel.html', auto_open=True)

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.