]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix test failures 1724/head
authoretimberg <evert.timberg@gmail.com>
Wed, 2 Dec 2015 02:07:53 +0000 (21:07 -0500)
committeretimberg <evert.timberg@gmail.com>
Wed, 2 Dec 2015 02:07:53 +0000 (21:07 -0500)
src/scales/scale.time.js

index 2f562bb7912a62929fb7b298428ac10206417f66..f1a311836276afbc7dbd4062ff772ab3b79860a6 100644 (file)
 
                        this.ticks = [];
                        this.labelMoments = [];
+                       this.unitScale = 1; // How much we scale the unit by, ie 2 means 2x unit per step 
 
                        this.buildLabelMoments();
 
                                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];