Black Lives Matter. Please consider donating to Black Girls Code today.

Is it possible to load a trace as deselected in the legend?

I have a scenario where I’d like to load multiple traces of data into a scatter plot; each trace represents 1 year. I’d only like to display the 4 most recent years on the plot, and have the rest be deselected on the legend and have them available for the user to click on. Is that possible? I don’t see anything in the legend docs that supports this.

Here’s how:

1 Like

A million thank yous!