Fix alignment of weekend bands on graphs.
This commit is contained in:
@@ -283,8 +283,8 @@
|
|||||||
if ((moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sat') ||
|
if ((moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sat') ||
|
||||||
(moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sun')) {
|
(moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sun')) {
|
||||||
hc_plays_by_day_options.xAxis.plotBands.push({
|
hc_plays_by_day_options.xAxis.plotBands.push({
|
||||||
from: i,
|
from: i-0.5,
|
||||||
to: i+1,
|
to: i+0.5,
|
||||||
color: 'rgba(80,80,80,0.3)'
|
color: 'rgba(80,80,80,0.3)'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -361,8 +361,8 @@
|
|||||||
if ((moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sat') ||
|
if ((moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sat') ||
|
||||||
(moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sun')) {
|
(moment(data.categories[i], 'YYYY-MM-DD').format('ddd') == 'Sun')) {
|
||||||
hc_plays_by_stream_type_options.xAxis.plotBands.push({
|
hc_plays_by_stream_type_options.xAxis.plotBands.push({
|
||||||
from: i,
|
from: i-0.5,
|
||||||
to: i+1,
|
to: i+0.5,
|
||||||
color: 'rgba(80,80,80,0.3)'
|
color: 'rgba(80,80,80,0.3)'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user