subset bar charts by clicking on bars, front end