Added compatibility layer to support existing plots and historical tables

This commit is contained in:
Henry
2016-07-19 19:54:52 -07:00
parent 15a608a861
commit 2a19394334
7 changed files with 235 additions and 11 deletions

View File

@ -227,13 +227,18 @@ define(
}
// Respond to a display bounds change (requery for data)
function changeDisplayBounds(event, bounds) {
var domainAxis = $scope.axes[0];
function changeDisplayBounds(event, bounds, follow) {
//'hack' for follow mode
if (follow === true){
setBasePanZoom(bounds);
} else {
var domainAxis = $scope.axes[0];
domainAxis.chooseOption(bounds.domain);
updateDomainFormat();
setBasePanZoom(bounds);
requery();
domainAxis.chooseOption(bounds.domain);
updateDomainFormat();
setBasePanZoom(bounds);
requery();
}
}
this.modeOptions = new PlotModeOptions([], subPlotFactory);