added legend to pie chart
build