[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.
This commit is contained in:
Walter Rafelsberger 2018-05-08 14:58:17 +02:00 committed by GitHub
parent b1ca716b80
commit 74868ebb2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,7 @@ module.directive('mlTimeseriesChart', function (
drawContextChartSelection();
});
scope.$watchCollection('focusForecastData', renderFocusChart);
scope.$watchCollection('focusChartData', renderFocusChart);
scope.$watchGroup(['showModelBounds', 'showForecast'], renderFocusChart);