Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Hiding two graphs when legend clicked on

$
0
0

Greetings

I have generated the following plots from formula1 data, where, px.line() and px.scatter() was used seperately. This was done as I would like to indicate the tyre used by the driver for each lap (which was shown by px.scatter()) and px.line plotted the trace for lap times for a driver

The graph:

When clicking on a driver(px.line()) in the legend, usually the graph clicked on, becomes invisible. In my case, The scatter plot for that line graph is still evident, observe below


Is it possible to make the scatter plot and line plot, that would be 2 plots, invisible when clicking on the driver (line plot) alone?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images