Skip to content

Commit 77a5464

Browse files
committed
Fix check on subplot hasXY
1 parent 9cebd58 commit 77a5464

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plot_api/plot_schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function handleSubplotObjs(layoutAttributes) {
286286
var subplotRegistry = subplotsRegistry[subplotType],
287287
isSubplotObj;
288288

289-
if(subplotType === 'cartesian') {
289+
if(subplotType === 'cartesian' || subplotType === 'gl2d') {
290290
isSubplotObj = (
291291
subplotRegistry.attrRegex.x.test(k) ||
292292
subplotRegistry.attrRegex.y.test(k)

src/plots/plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ plots.registerSubplot = function(_module) {
140140

141141
var regexStart = '^',
142142
regexEnd = '([2-9]|[1-9][0-9]+)?$',
143-
hasXY = (plotType === 'cartesian' || subplotsRegistry === 'gl2d');
143+
hasXY = (plotType === 'cartesian' || plotType === 'gl2d');
144144

145145
function makeRegex(mid) {
146146
return new RegExp(regexStart + mid + regexEnd);

0 commit comments

Comments
 (0)