additional updates to the pie chart directive