[+] Show label on the top

This commit is contained in:
Hykilpikonna
2019-11-10 13:11:51 -05:00
parent c93b1e4eec
commit 9bc69a81af
@@ -117,6 +117,16 @@ export default class CourseScatter extends Vue
name: type.name,
data: CourseScatter.assignmentsData(this.course.assignments.filter(a => a.typeId == type.id)),
symbolSize: (data: any) => Math.max(Math.sqrt(type.weight * data[2].scoreMax / type.scoreMax) * 12, 12),
label:
{
emphasis:
{
show: true,
formatter: (p: any) => p.data[2].description,
position: 'top'
}
},
}
});