From bca691398e6d7eb1c13410f875a203d34f87a2d7 Mon Sep 17 00:00:00 2001 From: Quynh Nguyen Date: Thu, 22 Oct 2020 09:53:45 -0500 Subject: [PATCH] [ML] Remove redundant code --- .../timeseries_chart/timeseries_chart.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js b/x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js index 881dbf8198d50..dc049faa61717 100644 --- a/x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js +++ b/x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js @@ -362,7 +362,6 @@ class TimeseriesChartIntl extends Component { const context = svg .append('g') - .attr('id', 'timeSeriesBrush') .attr('class', 'context-chart') .attr( 'transform', @@ -1092,6 +1091,7 @@ class TimeseriesChartIntl extends Component { cxtGroup.append('path').datum(data).attr('class', 'values-line').attr('d', contextValuesLine); drawLineChartDots(data, cxtGroup, contextValuesLine, 1); + // Add annotation markers to the context area cxtGroup.append('g').classed('mlContextAnnotations', true); const [contextXRangeStart, contextXRangeEnd] = this.contextXScale.range(); @@ -1459,22 +1459,6 @@ class TimeseriesChartIntl extends Component { }); } - if (marker.metricFunction) { - tooltipData.push({ - label: i18n.translate( - 'xpack.ml.timeSeriesExplorer.timeSeriesChart.multiBucketImpactLabel', - { - defaultMessage: 'function', - } - ), - value: marker.metricFunction, - seriesIdentifier: { - key: seriesKey, - }, - valueAccessor: 'metric_function', - }); - } - if (modelPlotEnabled === false) { // Show actual/typical when available except for rare detectors. // Rare detectors always have 1 as actual and the probability as typical.