Added labeling of pie charts and legends, init on line graph