So, I have a Student model that has section_id column. I was able to create a line graph that shows number of enrollments every year. Now, I want to make multiple lines for each section_id. How can I achieve this? Also, how can I make the Y numbers as whole numbers and ranges only to available data. Example, the max data is 10 and min is 3, the Y numbers should only show range from 3 to 10.
So, I have a
Student
model that hassection_id
column. I was able to create a line graph that shows number of enrollments every year. Now, I want to make multiple lines for eachsection_id
. How can I achieve this? Also, how can I make the Y numbers as whole numbers and ranges only to available data. Example, the max data is 10 and min is 3, the Y numbers should only show range from 3 to 10.Controller
Model