Skip to content

Commit 296bd55

Browse files
committed
Normalize axis references in coerceRefArray using cleanId
1 parent 3262220 commit 296bd55

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/plots/cartesian/axes.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ axes.coerceRefArray = function(containerIn, containerOut, gd, attr, dflt, extraO
156156
axRef = axRef.concat(Array(expectedLen - axRef.length).fill(dflt));
157157
}
158158

159-
// Check all references, replace with default if invalid
159+
// Clean all axis references, replace with default if invalid
160160
for(var i = 0; i < axRef.length; i++) {
161-
if(!axlist.includes(axRef[i])) {
162-
axRef[i] = dflt;
163-
}
161+
axRef[i] = axisIds.cleanId(axRef[i], axLetter, true) || axRef[i];
162+
if(!axlist.includes(axRef[i])) axRef[i] = dflt;
164163
}
165164

166165
containerOut[refAttr] = axRef;

0 commit comments

Comments
 (0)