Multiple dropdown for selecting difference trace of a group chart

Hi all,

I am new to Plotly and trying to create a comparison graph using group chart. I have used the example of " Bind dropdown events" (Dropdown events in JavaScript). However, I am not able to bind two separate dropdown to two traces I want to control so that I can compare the two data.

Is there any example of a comparison bar graph or any trick and advise this community can give? I really need your help.

got a workaround to achieve this. Thanks anyways