adding filter directive to control pie charts