chart now uses grades passed from controller