Skip to content

Commit fefe48f

Browse files
committed
Fix engagements on stat charts.
1 parent 582b7d9 commit fefe48f

File tree

1 file changed

+6
-2
lines changed
  • app/assets/javascripts/angular/directives

1 file changed

+6
-2
lines changed

app/assets/javascripts/angular/directives/chart.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,15 @@ gg.directive('chart', ['$compile', function($compile) {
125125

126126
if (scope.$parent.match.engagements) {
127127
options.xAxis.plotBands = [];
128+
speed_multiplier = 1;
129+
if (scope.$parent.match.expansion_tag == 'LotV') {
130+
speed_multiplier = 1.4;
131+
}
128132
_.each(scope.$parent.match.engagements, function(engagement) {
129133
options.xAxis.plotBands.push({
130134
color: 'rgba(150, 50, 50, 0.10)',
131-
from: engagement[0] / 960.0,
132-
to: engagement[1] / 960.0,
135+
from: engagement[0] / 960.0 / speed_multiplier,
136+
to: engagement[1] / 960.0 / speed_multiplier,
133137
zIndex: 10
134138
});
135139
});

0 commit comments

Comments
 (0)