Buttons On Pie Graphs

Hi,
Is there a way to include buttons in pie charts so that I can display multiple pie charts with a given time range (which will be determined by the button clicked - like there would be a button for 6 months that would display the pie charts for last 6 months)?

Thanks

See https://plot.ly/javascript/dropdowns/#add-two-dropdown-menus-to-a-chart-with-plotly.js

1 Like

Is linking a button to a certain variable allowed? If it is, is there a specific example I can look at?