[+] Add assignment description to the data

This commit is contained in:
Hykilpikonna
2019-10-20 20:20:45 -04:00
parent cfac8493cd
commit 9bfde0e39d
@@ -97,6 +97,7 @@ export default class CourseScatter extends Vue
}
},
// Legend
legend:
{
bottom: 24,
@@ -152,6 +153,6 @@ export default class CourseScatter extends Vue
private static assignmentsData(assignments: Assignment[])
{
return assignments.filter(a => a.complete == 'Complete')
.map(a => [FormatUtils.toChartDate(a.date), (a.score / a.scoreMax * 100).toFixed(2)]);
.map(a => [FormatUtils.toChartDate(a.date), (a.score / a.scoreMax * 100).toFixed(2), a.description]);
}
}