try snippet for pie chart