Skip to content

Commit

Permalink
[ML] Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Oct 22, 2020
1 parent e95be94 commit bca6913
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ class TimeseriesChartIntl extends Component {

const context = svg
.append('g')
.attr('id', 'timeSeriesBrush')
.attr('class', 'context-chart')
.attr(
'transform',
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit bca6913

Please sign in to comment.