(trace, fullLayout, xa, ya)
| 276 | } |
| 277 | |
| 278 | function getStackOpts(trace, fullLayout, xa, ya) { |
| 279 | var stackGroup = trace.stackgroup; |
| 280 | if(!stackGroup) return; |
| 281 | var stackOpts = fullLayout._scatterStackOpts[xa._id + ya._id][stackGroup]; |
| 282 | var stackAx = stackOpts.orientation === 'v' ? ya : xa; |
| 283 | // Allow stacking only on numeric axes |
| 284 | // calc is a little late to be figuring this out, but during supplyDefaults |
| 285 | // we don't know the axis type yet |
| 286 | if(stackAx.type === 'linear' || stackAx.type === 'log') return stackOpts; |
| 287 | } |
| 288 | |
| 289 | module.exports = { |
| 290 | calc: calc, |
no outgoing calls
no test coverage detected
searching dependent graphs…