We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5406829 commit 7357f82Copy full SHA for 7357f82
src/plots/cartesian/axes.js
@@ -378,7 +378,11 @@ axes.saveRangeInitial = function(gd, overwrite) {
378
// tozero: (boolean) make sure to include zero if axis is linear,
379
// and make it a tight bound if possible
380
axes.expand = function(ax, data, options) {
381
- var needsAutorange = (ax.autorange || Lib.nestedProperty(ax, 'rangeslider.autorange'));
+ var needsAutorange = (
382
+ ax.autorange ||
383
+ !!Lib.nestedProperty(ax, 'rangeslider.autorange').get()
384
+ );
385
+
386
if(!needsAutorange || !data) return;
387
388
if(!ax._min) ax._min = [];
0 commit comments