From 74868ebb2f6f08eac9c15c9f7a1d3f9524b8454a Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Tue, 8 May 2018 14:58:17 +0200 Subject: [PATCH] [ML] Fixes time series viewer data binding for forecast data. (#18903) Fixes the data binding of focusForecastData to renderFocusChart(). An update to focusForecastData in MlTimeSeriesExplorerController wasn't correctly picked up by the directive mlTimeseriesChart because the relevant data wasn't being watched. --- .../ml/public/timeseriesexplorer/timeseries_chart_directive.js | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/ml/public/timeseriesexplorer/timeseries_chart_directive.js b/x-pack/plugins/ml/public/timeseriesexplorer/timeseries_chart_directive.js index 556d6babbf05..e25ee1620bb8 100644 --- a/x-pack/plugins/ml/public/timeseriesexplorer/timeseries_chart_directive.js +++ b/x-pack/plugins/ml/public/timeseriesexplorer/timeseries_chart_directive.js @@ -112,6 +112,7 @@ module.directive('mlTimeseriesChart', function ( drawContextChartSelection(); }); + scope.$watchCollection('focusForecastData', renderFocusChart); scope.$watchCollection('focusChartData', renderFocusChart); scope.$watchGroup(['showModelBounds', 'showForecast'], renderFocusChart);