changed statistic: added bar or pie chart selection