add filter to resize pie chart