|
|
@ -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, |
|
|
|