From 25f061f340985b3138ce6e44f2e598975730f098 Mon Sep 17 00:00:00 2001 From: etimberg Date: Tue, 1 Dec 2015 21:07:53 -0500 Subject: [PATCH] Fix test failures --- src/scales/scale.time.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scales/scale.time.js b/src/scales/scale.time.js index 2f562bb79..f1a311836 100644 --- a/src/scales/scale.time.js +++ b/src/scales/scale.time.js @@ -133,6 +133,7 @@ this.ticks = []; this.labelMoments = []; + this.unitScale = 1; // How much we scale the unit by, ie 2 means 2x unit per step this.buildLabelMoments(); @@ -152,8 +153,6 @@ this.tickRange = Math.ceil(this.lastTick.diff(this.firstTick, this.tickUnit, true) + buffer); this.displayFormat = this.options.time.displayFormats[this.tickUnit]; - // How much we scale the unit by, ie 2 means 2x unit per step - this.unitScale = 1; var unitDefinitionIndex = 0; var unitDefinition = time.units[unitDefinitionIndex]; -- 2.47.2