Bring Drag & Drop to Dash with Dashboard Engine. šŸ’« Learn how at our next webinar!

Legend groupclick toggleitem doesn't seem to work

Hi there,

im using legend groups in a graph to organize my traces. What I would love to do is toggle the visibility of the entire group if I click on the group title and just a single trace if I click on a trace.

From what I could find out so far, only the second part is possible using

fig.update_layout(legend_groupclick= 'toggleitem')

Unfortunately, I seem to be doing something wrong here, as this has no effect. The property gets set in my graph, but when I click an item, the whole group still gets toggled.

Does anyone have an idea what Iā€™m doing wrong?