Adjusted pie chart code to render better at smaller sizes and added some additional adjustments.