Added mode, timeSystem, and deltas

Fixing tests

Fixed broken tests

Added tests

Fixed style errors
This commit is contained in:
Henry
2016-11-11 10:18:50 -08:00
committed by Pete Richards
parent efed5f68af
commit eaae401d16
5 changed files with 280 additions and 52 deletions

View File

@ -254,7 +254,9 @@ define(
} else {
var domainAxis = $scope.axes[0];
domainAxis.chooseOption(bounds.domain);
if (bounds.domain) {
domainAxis.chooseOption(bounds.domain);
}
updateDomainFormat();
setBasePanZoom(bounds);
requery();
@ -283,7 +285,13 @@ define(
new PlotAxis("ranges", [], AXIS_DEFAULTS[1])
];
changeDisplayBounds(undefined, conductor.bounds(), conductor.follow());
//Are some initialized bounds defined?
var bounds = conductor.bounds();
if (bounds &&
bounds.start !== undefined &&
bounds.end !== undefined) {
changeDisplayBounds(undefined, conductor.bounds(), conductor.follow());
}
// Watch for changes to the selected axis
$scope.$watch("axes[0].active.key", domainRequery);