|
|
@ -78,7 +78,7 @@ export class GraphRenderer { |
|
|
|
|
|
|
|
|
|
|
|
// this.eventManager = new EventManager(this.ctrl);
|
|
|
|
// this.eventManager = new EventManager(this.ctrl);
|
|
|
|
this.flotOptions = {} |
|
|
|
this.flotOptions = {} |
|
|
|
|
|
|
|
|
|
|
|
this.tooltip = new GraphTooltip( |
|
|
|
this.tooltip = new GraphTooltip( |
|
|
|
$elem, this.dashboard, scope, () => this.sortedSeries, |
|
|
|
$elem, this.dashboard, scope, () => this.sortedSeries, |
|
|
|
this._analyticController.getSegmentsSearcher() |
|
|
|
this._analyticController.getSegmentsSearcher() |
|
|
@ -150,9 +150,11 @@ export class GraphRenderer { |
|
|
|
this._analyticController.deleteLabelingAnalyticUnitSegmentsInRange( |
|
|
|
this._analyticController.deleteLabelingAnalyticUnitSegmentsInRange( |
|
|
|
segment.from, segment.to |
|
|
|
segment.from, segment.to |
|
|
|
); |
|
|
|
); |
|
|
|
} else { |
|
|
|
|
|
|
|
this._analyticController.addLabelSegment(segment); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this._analyticController.addLabelSegment( |
|
|
|
|
|
|
|
segment, this._analyticController.labelingDeleteMode |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
this.renderPanel(); |
|
|
|
this.renderPanel(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -194,6 +196,7 @@ export class GraphRenderer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public render(renderData) { |
|
|
|
public render(renderData) { |
|
|
|
|
|
|
|
|
|
|
|
this.data = renderData || this.data; |
|
|
|
this.data = renderData || this.data; |
|
|
|
if (!this.data) { |
|
|
|
if (!this.data) { |
|
|
|
return; |
|
|
|
return; |
|
|
@ -615,7 +618,7 @@ export class GraphRenderer { |
|
|
|
return [tickIndex + 1, point[1]]; |
|
|
|
return [tickIndex + 1, point[1]]; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
ticks = _.flatten(ticks);
|
|
|
|
ticks = _.flatten(ticks); |
|
|
|
|
|
|
|
|
|
|
|
this.flotOptions.xaxis = { |
|
|
|
this.flotOptions.xaxis = { |
|
|
|
timezone: this.dashboard.getTimezone(), |
|
|
|
timezone: this.dashboard.getTimezone(), |
|
|
|