Entered sliders to drive line graph and pie chart in Astronomy demo

- added event handlers and corrected equations to calculate size of galaxy through difference equation
- added a check in piecharts to see if a white space was inserted (<100%), which should be omitted in the legend