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

Function setFirstScatter

src/traces/scatter/calc.js:266–270  ·  view source on GitHub ↗

* mark the first scatter trace for each subplot * note that scatter and scattergl each get their own first trace * note also that I'm doing this during calc rather than supplyDefaults * so I don't need to worry about transforms, but if we ever do * per-trace calc this will get confused.

(fullLayout, trace)

Source from the content-addressed store, hash-verified

264 * per-trace calc this will get confused.
265 */
266function setFirstScatter(fullLayout, trace) {
267 var group = firstScatterGroup(trace);
268 var firstScatter = fullLayout._firstScatter;
269 if(!firstScatter[group]) firstScatter[group] = trace.uid;
270}
271
272function firstScatterGroup(trace) {
273 var stackGroup = trace.stackgroup;

Callers 2

calcFunction · 0.85
calc.jsFile · 0.85

Calls 1

firstScatterGroupFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…