diff --git a/data/interfaces/default/edit_user.html b/data/interfaces/default/edit_user.html index 09314baa..937647d4 100644 --- a/data/interfaces/default/edit_user.html +++ b/data/interfaces/default/edit_user.html @@ -46,8 +46,8 @@ DOCUMENTATION :: END
diff --git a/data/interfaces/default/graphs.html b/data/interfaces/default/graphs.html index bb925072..3dbe0bd2 100644 --- a/data/interfaces/default/graphs.html +++ b/data/interfaces/default/graphs.html @@ -276,6 +276,15 @@ var dateArray = []; for (var i = 0; i < data.categories.length; i++) { dateArray.push(moment(data.categories[i], 'YYYY-MM-DD').valueOf()); + // Highlight the weekend + 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, + color: 'rgba(80,80,80,0.3)' + }); + } } hc_plays_by_day_options.yAxis.min = 0; hc_plays_by_day_options.xAxis.categories = dateArray; @@ -345,6 +354,15 @@ var dateArray = []; for (var i = 0; i < data.categories.length; i++) { dateArray.push(moment(data.categories[i], 'YYYY-MM-DD').valueOf()); + // Highlight the weekend + 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, + color: 'rgba(80,80,80,0.3)' + }); + } } hc_plays_by_stream_type_options.yAxis.min = 0; hc_plays_by_stream_type_options.xAxis.categories = dateArray; @@ -525,6 +543,9 @@ $('.yaxis-text').html('Play duration'); } + hc_plays_by_day_options.xAxis.plotBands = []; + hc_plays_by_stream_type_options.xAxis.plotBands = []; + hc_plays_by_day_options.yAxis.labels.formatter = yaxis_format; hc_plays_by_dayofweek_options.yAxis.labels.formatter = yaxis_format; hc_plays_by_hourofday_options.yAxis.labels.formatter = yaxis_format; diff --git a/data/interfaces/default/info.html b/data/interfaces/default/info.html index 6cc695c3..2dd178a1 100644 --- a/data/interfaces/default/info.html +++ b/data/interfaces/default/info.html @@ -200,7 +200,7 @@ DOCUMENTATION :: ENDSetup is now complete. For more configuration options please visit the Settings menu on the home page.