diff --git a/platform/features/plot/src/PlotController.js b/platform/features/plot/src/PlotController.js index 84350fe646..4789f4c682 100644 --- a/platform/features/plot/src/PlotController.js +++ b/platform/features/plot/src/PlotController.js @@ -209,8 +209,15 @@ define( subscribe($scope.domainObject); } + function updateDomainFormat() { + var domainAxis = $scope.axes[0]; + plotTelemetryFormatter + .setDomainFormat(domainAxis.active.format); + } + function domainRequery(newDomain) { if (newDomain !== lastDomain) { + updateDomainFormat(); requery(); } } @@ -226,17 +233,11 @@ define( var domainAxis = $scope.axes[0]; domainAxis.chooseOption(bounds.domain); - plotTelemetryFormatter - .setDomainFormat(domainAxis.active.format); + updateDomainFormat(); setBasePanZoom(bounds); requery(); } - - function updateDomainFormat(format) { - plotTelemetryFormatter.setDomainFormat(format); - } - this.modeOptions = new PlotModeOptions([], subPlotFactory); this.updateValues = updateValues;