add graph for studentByClass