Create plotly gantt chart with buttons to change sorting

Hi all,

I am new to Plotly in Python and have a question regarding gantt charts.

I have a gantt chart in Plotly and want to include some user options of changing the data presented.
Currently it presents the timeline for each activity. The color for each activity is based on the assigned people. However, I want the user to have the option (using buttons) to change this. Meaning, the user needs to be able to switch between assigned people and for instance progress.

Is this possible and if so, how whould I do this?