We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
plotly
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 87b12cf commit 33b2bd0Copy full SHA for 33b2bd0
src/plots/cartesian/set_convert.js
@@ -254,7 +254,7 @@ module.exports = function setConvert(ax) {
254
*/
255
ax.cleanRange = function(rangeAttr) {
256
if(!rangeAttr) rangeAttr = 'range';
257
- var range = ax[rangeAttr],
+ var range = Lib.nestedProperty(ax, rangeAttr).get(),
258
axLetter = (ax._id || 'x').charAt(0),
259
i, dflt;
260
@@ -266,7 +266,7 @@ module.exports = function setConvert(ax) {
266
dflt = dflt.slice();
267
268
if(!range || range.length !== 2) {
269
- ax[rangeAttr] = dflt;
+ Lib.nestedProperty(ax, rangeAttr).set(dflt);
270
return;
271
}
272
0 commit comments