implemented hierarchical filtering on barchart