mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
Further reformatted scale.linear.js to match original indenting.
Refactored and fixed scale calculation. Added dist files to commit.
This commit is contained in:
parent
85de9fbe9c
commit
098b05f1b2
14
Chart.min.js
vendored
14
Chart.min.js
vendored
File diff suppressed because one or more lines are too long
@ -171,8 +171,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.options.ticks.fixedStepSize && this.options.ticks.fixedStepSize > 0) {
|
if (this.options.ticks.fixedStepSize && this.options.ticks.fixedStepSize > 0) {
|
||||||
for (var j = this.min; j <= this.max; ++j) {
|
var j = this.min;
|
||||||
this.ticks.push(j * this.options.ticks.fixedStepSize);
|
while (j <= this.max) {
|
||||||
|
this.ticks.push(j);
|
||||||
|
j += this.options.ticks.fixedStepSize;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var niceRange = helpers.niceNum(this.max - this.min, false);
|
var niceRange = helpers.niceNum(this.max - this.min, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user