plotly / plotly/plotly.py

Plotly chart selection not working with non-scatter plot charts.

Open
#5,026 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I'm using plotly.express to create some figures and expose them in a streamlit app. One of them is a parallel coordinates plot. However when I select select data from the plot it doesn't return anything.

fig = create_parcoord_plot(plot_data, color_by=color_by_var)
    selection = st.plotly_chart(fig, on_select="rerun", use_container_width=True,)
st.write(selection)

Image

I believe some other user have encounter this bug before, but I wasn't able to find a ticket regarding this.

Is there a quick solution?

Thanks!

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 supplied plotly.express parallel-coordinates example and the st.plotly_chart call, reproducing the behavior in a Streamlit app. The report names no repository files or tests; done means a selection from this chart is returned through the shown selection value, with coverage for the reported chart type.

Written by the indexing model from the issue text.

Assessment

Tech stack
plotly, python, streamlit
Domain
data-visualization, frontend
Issue type
Bug
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.