@@ -98,8 +98,7 @@ function expandRange(range) {
9898 * but can be prefixed, like 'ax' for annotation's arrow x
9999 * dflt: the default to coerce to, or blank to use the first axis (falling back on
100100 * extraOption if there is no axis)
101- * extraOption: aside from existing axes with this letter, what non-axis value is allowed?
102- * Only required if it's different from `dflt`
101+ * extraOption: fallback value, only required if it's different from `dflt`
103102 */
104103axes . coerceRef = function ( containerIn , containerOut , gd , attr , dflt , extraOption ) {
105104 var axLetter = attr . charAt ( attr . length - 1 ) ;
@@ -143,7 +142,7 @@ axes.coerceRefArray = function(containerIn, containerOut, gd, attr, dflt, extraO
143142
144143 // Build the axis list, which we use to validate the axis references
145144 if ( ! dflt ) dflt = axlist [ 0 ] || ( typeof extraOption === 'string' ? extraOption : extraOption [ 0 ] ) ;
146- axlist = axlist . concat ( axlist . map ( function ( x ) { return x + ' domain' ; } ) ) ;
145+ axlist = axlist . concat ( axlist . map ( x => x + ' domain' ) ) ;
147146 axlist = axlist . concat ( extraOption ? extraOption : [ ] ) ;
148147
149148 // Handle array length mismatch
@@ -178,6 +177,7 @@ axes.coerceRefArray = function(containerIn, containerOut, gd, attr, dflt, extraO
178177 */
179178axes . getRefType = function ( ar ) {
180179 if ( ar === undefined ) { return ar ; }
180+ if ( Array . isArray ( ar ) ) { return 'array' ; }
181181 if ( ar === 'paper' ) { return 'paper' ; }
182182 if ( ar === 'pixel' ) { return 'pixel' ; }
183183 if ( / ( d o m a i n ) $ / . test ( ar ) ) { return 'domain' ; } else { return 'range' ; }
0 commit comments