mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Correct 50% warning on power band
This commit is contained in:
@@ -103,7 +103,7 @@ angular.module('app').directive('powerBands', ['$window', '$translate', '$rootSc
|
||||
vis.selectAll('.pct.axis').attr('transform', 'translate(0,' + innerHeight + ')').call(pctAxis);
|
||||
|
||||
var pwrWarningClass = 'threshold' + (bands[0].retractedSum * 2 >= available ? ' exceeded' : '');
|
||||
vis.selectAll('.pct.axis g:nth-child(6)').selectAll('line, text').attr('class', pwrWarningClass);
|
||||
vis.select('.pct.axis g:nth-child(6)').selectAll('line, text').attr('class', pwrWarningClass);
|
||||
|
||||
wattAxisGroup.append('line')
|
||||
.attr('x1', pctScale(0.5))
|
||||
@@ -112,8 +112,6 @@ angular.module('app').directive('powerBands', ['$window', '$translate', '$rootSc
|
||||
.attr('y2', innerHeight)
|
||||
.attr('class', pwrWarningClass);
|
||||
|
||||
|
||||
|
||||
retText.attr('y', repY);
|
||||
depText.attr('y', depY);
|
||||
updateLabel(retLbl, w, repY, retBandsSelected, retBandsSelected ? retractedSum : maxBand.retractedSum, available);
|
||||
|
||||
Reference in New Issue
Block a user