Further reformatted scale.linear.js to match original indenting.

Refactored and fixed scale calculation.
Added dist files to commit.
This commit is contained in:
Robert Becker 2016-02-05 09:41:45 +01:00
parent 85de9fbe9c
commit 098b05f1b2
3 changed files with 462 additions and 295 deletions

737
Chart.js vendored

File diff suppressed because it is too large Load Diff

14
Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -171,8 +171,10 @@
}
if (this.options.ticks.fixedStepSize && this.options.ticks.fixedStepSize > 0) {
for (var j = this.min; j <= this.max; ++j) {
this.ticks.push(j * this.options.ticks.fixedStepSize);
var j = this.min;
while (j <= this.max) {
this.ticks.push(j);
j += this.options.ticks.fixedStepSize;
}
} else {
var niceRange = helpers.niceNum(this.max - this.min, false);