diff options
author | Simon Knox <simon@gitlab.com> | 2018-10-05 19:26:16 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-10-05 19:26:16 +0300 |
commit | deb6b429bfd06ff077f85c03a7ce1f4ba0186bec (patch) | |
tree | 05e1b04ad0f00dbbfea368d61e8d815f5325dbbb /app/assets/javascripts/monitoring/components/graph.vue | |
parent | aea6b468308bedb94724ad9626b4c49dd5c3b5a1 (diff) |
Backport changes from gitlab-ee!7538
Diffstat (limited to 'app/assets/javascripts/monitoring/components/graph.vue')
-rw-r--r-- | app/assets/javascripts/monitoring/components/graph.vue | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/assets/javascripts/monitoring/components/graph.vue b/app/assets/javascripts/monitoring/components/graph.vue index ff44f51b8f8..3cccaf72ed7 100644 --- a/app/assets/javascripts/monitoring/components/graph.vue +++ b/app/assets/javascripts/monitoring/components/graph.vue @@ -82,6 +82,7 @@ export default { showFlag: false, showFlagContent: false, timeSeries: [], + graphDrawData: {}, realPixelRatio: 1, seriesUnderMouse: [], }; @@ -180,12 +181,12 @@ export default { }); }, renderAxesPaths() { - this.timeSeries = createTimeSeries( + ({ timeSeries: this.timeSeries, graphDrawData: this.graphDrawData } = createTimeSeries( this.graphData.queries, this.graphWidth, this.graphHeight, this.graphHeightOffset, - ); + )); if (_.findWhere(this.timeSeries, { renderCanary: true })) { this.timeSeries = this.timeSeries.map(series => ({ ...series, renderCanary: true })); @@ -288,6 +289,10 @@ export default { :viewBox="innerViewBox" class="graph-data" > + <slot + name="additionalSvgContent" + :graphDrawData="graphDrawData" + /> <graph-path v-for="(path, index) in timeSeries" :key="index" |