pie chart and segments working