From b7baf1a05dbbb8f577474d3c56b16ed430bb5880 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 14 Aug 2015 21:38:51 +0200 Subject: [PATCH] Fix alignment of weekend bands on graphs. --- data/interfaces/default/graphs.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/interfaces/default/graphs.html b/data/interfaces/default/graphs.html index c75b0a29..9aef481d 100644 --- a/data/interfaces/default/graphs.html +++ b/data/interfaces/default/graphs.html @@ -283,8 +283,8 @@ if ((moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sat') || (moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sun')) { hc_plays_by_day_options.xAxis.plotBands.push({ - from: i, - to: i+1, + from: i-0.5, + to: i+0.5, color: 'rgba(80,80,80,0.3)' }); } @@ -361,8 +361,8 @@ if ((moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sat') || (moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sun')) { hc_plays_by_stream_type_options.xAxis.plotBands.push({ - from: i, - to: i+1, + from: i-0.5, + to: i+0.5, color: 'rgba(80,80,80,0.3)' }); }