[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);
}
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;