Default legend selection

How do we default a selection of specific legend items. For instance if I have a list if ggplot geoms converted to plotly for various years and other cetagories…but I only want the current year trace to be auto selected…how would we code that?

1 Like