nl_tokens: Returns all axis components of the desired axis type ( x or y ) along with any parent components excluding VictoryChart
pl_tokens: function getAxisComponentsWithParent ( childComponents , type ) { const matchesType = ( child ) => { return type === "dependent" ? child . props . dependentAxis : ! child . props . dependentAxis ; } ; const findComponents = ( children ) => { return children . reduce ( ( memo , child ) => { if ( child . type && child . type . role === "axis" && matchesType ( child ) ) { return memo . concat ( child ) ; } else if ( child . props && child . props . children ) { const childAxis = findComponents ( React . Children . toArray ( <mask> . props . children ) ) ; return childAxis . length > 0 ? memo . concat ( child ) : memo ; } return memo ; } , [ ] ) ; } ; return findComponents ( childComponents ) ; }