I personally believe the easiest way to do this is to utilize duplicate dashboards and then switch between them using navigation buttons. For example, lets assume you want the user to have the ability to switch between a bar chart and a line chart. All you would do is to create a dashboard with a bar chart and a separate one with a line chart. Then you use a dashboard navigation button to switch between the two. It is so easy and will take you less than 10 minutes to do.
This blog post will explain it in great detail, although its really really simple: https://www.kevinflerlage.com/2018/12/easily-create-collapsible-menus-sheet.html
If you find this helpful, please mark it as answered or as helpful. Let me know if you have other questions. Thank you.
If Kevin's approach doesn't work for you then, I'd suggest reading the following tutorial which I think does a pretty good job of explaining it: https://www.thedataschool.co.uk/hashu-shenkar/tableau-tip-switch-between-views-dynamically-on-a-dashboard/