Browse Source

Hotfix for #235

master
rozetko 6 years ago
parent
commit
57ca5c7a59
  1. 6
      src/panel/graph_panel/controllers/analytic_controller.ts

6
src/panel/graph_panel/controllers/analytic_controller.ts

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

Loading…
Cancel
Save