[O] Use percent score instead of 0 to 1

This commit is contained in:
Hykilpikonna
2019-10-20 13:00:52 -04:00
parent 105d1f7619
commit 8477c2f63b
@@ -50,7 +50,7 @@ export default class CourseScatter extends Vue
{
type: 'value',
name: 'Percentage Score',
max: 1,
max: 100,
min: 0
},
@@ -96,7 +96,7 @@ export default class CourseScatter extends Vue
*/
private static assignmentsData(assignments: Assignment[])
{
return assignments.map(a => [FormatUtils.toChartDate(a.date), a.score / a.scoreMax]);
return assignments.map(a => [FormatUtils.toChartDate(a.date), a.score / a.scoreMax * 100]);
}
afterConfig(options: any)