[+] Display weight percentage for pie too
This commit is contained in:
@@ -43,7 +43,7 @@ export default class TypePie extends Vue
|
|||||||
label: GraphUtils.pieTextStyle(),
|
label: GraphUtils.pieTextStyle(),
|
||||||
data: this.course.assignmentTypes.map((t, i) => {return {
|
data: this.course.assignmentTypes.map((t, i) => {return {
|
||||||
value: t.weight,
|
value: t.weight,
|
||||||
name: t.name,
|
name: `${t.name}\n${t.weight}%`,
|
||||||
itemStyle:
|
itemStyle:
|
||||||
{
|
{
|
||||||
color: Constants.THEME.colors[i],
|
color: Constants.THEME.colors[i],
|
||||||
|
|||||||
Reference in New Issue
Block a user