[Plot] Update domain format

...on change in user's domain selection.
This commit is contained in:
Victor Woeltjen 2015-11-10 16:12:16 -08:00
parent d60bf94501
commit b30e72081c

View File

@ -209,8 +209,15 @@ define(
subscribe($scope.domainObject); subscribe($scope.domainObject);
} }
function updateDomainFormat() {
var domainAxis = $scope.axes[0];
plotTelemetryFormatter
.setDomainFormat(domainAxis.active.format);
}
function domainRequery(newDomain) { function domainRequery(newDomain) {
if (newDomain !== lastDomain) { if (newDomain !== lastDomain) {
updateDomainFormat();
requery(); requery();
} }
} }
@ -226,17 +233,11 @@ define(
var domainAxis = $scope.axes[0]; var domainAxis = $scope.axes[0];
domainAxis.chooseOption(bounds.domain); domainAxis.chooseOption(bounds.domain);
plotTelemetryFormatter updateDomainFormat();
.setDomainFormat(domainAxis.active.format);
setBasePanZoom(bounds); setBasePanZoom(bounds);
requery(); requery();
} }
function updateDomainFormat(format) {
plotTelemetryFormatter.setDomainFormat(format);
}
this.modeOptions = new PlotModeOptions([], subPlotFactory); this.modeOptions = new PlotModeOptions([], subPlotFactory);
this.updateValues = updateValues; this.updateValues = updateValues;