This commit is contained in:
Colin McLeod
2015-10-07 02:17:49 -07:00
parent a4b8b942a1
commit a213ad12d0

View File

@@ -102,7 +102,7 @@ angular.module('app').directive('powerBands', ['$window', '$translate', '$rootSc
wattAxisGroup.call(wattAxis);
vis.selectAll('.pct.axis').attr('transform', 'translate(0,' + innerHeight + ')').call(pctAxis);
var pwrWarningClass = 'threshold' + (bands[0].retractedSum * 2 >= available ? ' exceeded' : '') ;
var pwrWarningClass = 'threshold' + (bands[0].retractedSum * 2 >= available ? ' exceeded' : '');
vis.selectAll('.pct.axis g:nth-child(6)').selectAll('line, text').attr('class', pwrWarningClass);
wattAxisGroup.append('line')