Updating transforms groupby

Hi Plotly Community,

I’ve been playing with Plotly transforms “groupy” function which is really great.
But i cannot manage to update its parameters on the fly. Is there any restriction on doing this ?

For example, i run (labels stand for string )
update(chart, { transforms: [{type: ‘groupby’, groups: labels}] }, {});

It does not update with new labels and it removes the legend on the right of the chart.

By the way, transforms are said to be deprecated but which replacement should i look for ?

Thanks for your help,
best regards,
Nicolas

Has anyone found replacement of transforms to group data?