fixed #19
This commit is contained in:
parent
aeba8f58b3
commit
d8723a3d9e
1 changed files with 10 additions and 0 deletions
10
js/App.js
10
js/App.js
|
@ -249,6 +249,16 @@ App.prototype.updatePieChart = function() {
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
lastend += Math.PI*2*(data[i]/myTotal);
|
lastend += Math.PI*2*(data[i]/myTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(all > 0) {
|
||||||
|
ctx.font = "12px FeuraSans, sans-serif";
|
||||||
|
ctx.fillStyle = "#fff";
|
||||||
|
ctx.textAlign = "center";
|
||||||
|
var text = unread + "/" + all;
|
||||||
|
var x = canvas.width / 2;
|
||||||
|
var y = canvas.height / 2 + 4;
|
||||||
|
ctx.fillText(text, x, y, canvas.width-6);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue