From 1e2c979341710b8134234657067813b240e61e30 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 1 Feb 2018 19:39:41 +0100 Subject: [PATCH] Fix #1155 --- public/js/ff/charts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/ff/charts.js b/public/js/ff/charts.js index aa01a761fd..bec7c03c18 100644 --- a/public/js/ff/charts.js +++ b/public/js/ff/charts.js @@ -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 },