reworking logic for pie charts (student overview + assignment show)