MCPcopy Index your code
hub / github.com/plotly/plotly.js / getStackOpts

Function getStackOpts

src/traces/scatter/calc.js:278–287  ·  view source on GitHub ↗
(trace, fullLayout, xa, ya)

Source from the content-addressed store, hash-verified

276}
277
278function 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
289module.exports = {
290 calc: calc,

Callers 2

calcFunction · 0.85
calcAxisExpansionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…