Plotly click events in streamlit

Hey, ran into the same issue and figured out what’s wrong. Looks like the recent streamlit update is trying to managing plotly’s color. As a result all the color will show up as black unless you use streamlit’s plotly_chart method.

Here is the thread talking about the exact same issue.

Hopefully streamlit will fix this. In the mean time if you explicit set plotly line color (might have to use plotly’s graph_object interface) the color will appear correctly.

2 Likes