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

Auto assign colors to traces by group

The legendgroup option works great for grouping traces together so that one can toggle each group on/off with one click, but I would also like to use the grouping to color each trace within a group the same color. Is this possible without manually assigning colors?

Not at the moment unfortunately.