|
|
@ -313,7 +313,7 @@ export class AnalyticController { |
|
|
|
// We get a reference to flot options so we can change it and it'll be rendered
|
|
|
|
// We get a reference to flot options so we can change it and it'll be rendered
|
|
|
|
let options = plot.getOptions(); |
|
|
|
let options = plot.getOptions(); |
|
|
|
if(options.grid.markings === undefined) { |
|
|
|
if(options.grid.markings === undefined) { |
|
|
|
options.markings = []; |
|
|
|
options.grid.markings = []; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for(let i = 0; i < this.analyticUnits.length; i++) { |
|
|
|
for(let i = 0; i < this.analyticUnits.length; i++) { |
|
|
@ -371,11 +371,11 @@ export class AnalyticController { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if(!analyticUnit.inspect) { |
|
|
|
if(!analyticUnit.inspect) { |
|
|
|
return; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
const detectionSpans = analyticUnit.detectionSpans; |
|
|
|
const detectionSpans = analyticUnit.detectionSpans; |
|
|
|
if(detectionSpans === undefined) { |
|
|
|
if(detectionSpans === undefined) { |
|
|
|
return; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
const minValue = _.min(_.map(plot.getYAxes(), axis => axis.min)); |
|
|
|
const minValue = _.min(_.map(plot.getYAxes(), axis => axis.min)); |
|
|
|
detectionSpans.forEach(detectionSpan => { |
|
|
|
detectionSpans.forEach(detectionSpan => { |
|
|
|