This commit is contained in:
James Cole 2018-02-01 19:39:41 +01:00
parent d8664096f9
commit 1e2c979341
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -83,6 +83,10 @@ const verticalLinePlugin = {
// write label
context.fillStyle = "#444444";
context.textAlign = 'left';
if(pointIndex > 23) {
todayText = todayText + ' ';
context.textAlign = 'right';
}
context.fillText(todayText, lineLeftOffset, scale.top * 3); // (scale.bottom - scale.top) / 2 + scale.top
},