diff --git a/lib/timeline/component/DataAxis.js b/lib/timeline/component/DataAxis.js index bac4559d..4055bb11 100644 --- a/lib/timeline/component/DataAxis.js +++ b/lib/timeline/component/DataAxis.js @@ -354,9 +354,8 @@ DataAxis.prototype._redrawLabels = function () { var orientation = this.options['orientation']; // get the range for the slaved axis - var step; + var step, stepSize, rangeStart, rangeEnd; if (this.master === false) { - var stepSize, rangeStart, rangeEnd, minimumStep; if (this.zeroCrossing !== -1 && this.options.alignZeros === true) { if (this.range.end > 0) { stepSize = this.range.end / this.zeroCrossing; // size of one step @@ -374,14 +373,13 @@ DataAxis.prototype._redrawLabels = function () { rangeStart = this.range.start; rangeEnd = this.range.end; } - minimumStep = this.stepPixels; } else { // calculate range and step (step such that we have space for 7 characters per label) - minimumStep = this.props.majorCharHeight; rangeStart = this.range.start; rangeEnd = this.range.end; } + var minimumStep = this.props.majorCharHeight; this.step = step = new DataStep( rangeStart,