updating pie chart directive