File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -664,12 +664,12 @@ axes.prepTicks = function(ax, opts) {
664
664
// get range min and max to find range delta of axis 1
665
665
var minValBaseAxis = Math . min ( baseAxis . range [ 0 ] , baseAxis . range [ 1 ] ) ;
666
666
var maxValBaseAxis = Math . max ( baseAxis . range [ 0 ] , baseAxis . range [ 1 ] ) ;
667
- var rangeDeltaBaseAxis = Math . abs ( maxValBaseAxis - minValBaseAxis ) ;
667
+ var rangeDeltaBaseAxis = maxValBaseAxis - minValBaseAxis ;
668
668
669
669
// get range min and max to find range delta of axis 2
670
670
var minValAxis = Math . min ( ax . range [ 0 ] , ax . range [ 1 ] ) ;
671
671
var maxValAxis = Math . max ( ax . range [ 0 ] , ax . range [ 1 ] ) ;
672
- var rangeDeltaCurrentAxis = Math . abs ( maxValAxis - minValAxis ) ;
672
+ var rangeDeltaCurrentAxis = maxValAxis - minValAxis ;
673
673
674
674
// set second axis' dtick value to be based off of same ratio as the first axis
675
675
var dtickRatio = rangeDeltaBaseAxis / baseAxis . dtick ;
You can’t perform that action at this time.
0 commit comments