Updated pie chart code — for now, management and systems track have the same algorithm