|
|
@ -122,7 +122,6 @@ export class GraphRenderer { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this._analyticController.addLabelSegment(segment); |
|
|
|
this._analyticController.addLabelSegment(segment); |
|
|
|
} |
|
|
|
} |
|
|
|
this._renderPanel(); |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -202,7 +201,6 @@ export class GraphRenderer { |
|
|
|
// this.annotations = this.ctrl.annotations || [];
|
|
|
|
// this.annotations = this.ctrl.annotations || [];
|
|
|
|
this._buildFlotPairs(this.data); |
|
|
|
this._buildFlotPairs(this.data); |
|
|
|
updateLegendValues(this.data, this.panel); |
|
|
|
updateLegendValues(this.data, this.panel); |
|
|
|
this._renderPanel(); |
|
|
|
|
|
|
|
if(this.tooltip.visible) { |
|
|
|
if(this.tooltip.visible) { |
|
|
|
var pos = this.plot.c2p(this._graphMousePosition); |
|
|
|
var pos = this.plot.c2p(this._graphMousePosition); |
|
|
|
var canvasOffset = this.$elem.find('.flot-overlay').offset(); |
|
|
|
var canvasOffset = this.$elem.find('.flot-overlay').offset(); |
|
|
@ -314,7 +312,7 @@ export class GraphRenderer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Function for rendering panel
|
|
|
|
// Function for rendering panel
|
|
|
|
private _renderPanel() { |
|
|
|
public renderPanel() { |
|
|
|
|
|
|
|
|
|
|
|
this.panelWidth = this.$elem.width(); |
|
|
|
this.panelWidth = this.$elem.width(); |
|
|
|
if (this._shouldAbortRender()) { |
|
|
|
if (this._shouldAbortRender()) { |
|
|
|