Seeking guidance with D3.js for my new project. I have JSON data containing course titles, attendance records, and last attendance dates. How can I filter or manipulate this data to calculate the mean attendance for each individual course title within the past 30 days?
{
"Course_title": "Adv Mech Eng",
"Attendance_record": 0.89,
"Last_attendance": "2018-10-19 09:00:00.000",
},
{
"Course_title": "Comp Sci",
"Attendance_record": 0.50,
"Last_attendance": "2018-10-19 15:59:59.999"
}
I attempted using d3.nest() and d3.mean() functions, but struggling with incorporating the date element into the code for a d3 chart. Any assistance from experienced D3 users would be greatly appreciated!