Below code works fine for 3 students data that is hard coded. I need to generalise it to work with any number of students.
Making a stack column bar chart report using js