File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,10 @@ module.exports = function calcAutorange(gd) {
21
21
// this step in subsequent draw calls.
22
22
23
23
for ( var i = 0 ; i < axes . length ; i ++ ) {
24
- var ax = axes [ i ] ,
25
- opts = ax [ constants . name ] ;
24
+ var ax = axes [ i ] ;
25
+ var opts = ax [ constants . name ] ;
26
26
27
- // Don't try calling getAutoRange if _min and _max are filled in.
28
- // This happens on updates where the calc step is skipped.
29
-
30
- if ( opts && opts . visible && opts . autorange && ax . _min . length && ax . _max . length ) {
27
+ if ( opts && opts . visible && opts . autorange ) {
31
28
opts . _input . autorange = true ;
32
29
opts . _input . range = opts . range = getAutoRange ( gd , ax ) ;
33
30
}
Original file line number Diff line number Diff line change @@ -258,11 +258,7 @@ function doAutoRange(gd, ax) {
258
258
var axeRangeOpts = ax . _anchorAxis . rangeslider [ ax . _name ] ;
259
259
if ( axeRangeOpts ) {
260
260
if ( axeRangeOpts . rangemode === 'auto' ) {
261
- if ( hasDeps ) {
262
- axeRangeOpts . range = getAutoRange ( ax ) ;
263
- } else {
264
- axeRangeOpts . range = ax . _rangeInitial ? ax . _rangeInitial . slice ( ) : ax . range . slice ( ) ;
265
- }
261
+ axeRangeOpts . range = getAutoRange ( gd , ax ) ;
266
262
}
267
263
}
268
264
axIn = ax . _anchorAxis . _input ;
You can’t perform that action at this time.
0 commit comments