Dynamically select rows from dataframe to plot

Which is the best way to dynamically select rows from a dataframe to plot?

In my Dash app I load data, create a data frame from the data and display the data as a bar chart, with 22 bars at the same time. It would be nice to have the possibility to let the user select which bars he want to see.

Which is the best way to accomplish this?

Thanks in advance