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

Function getFullTrace

src/plot_api/plot_api.js:1413–1421  ·  view source on GitHub ↗
(traceIndex)

Source from the content-addressed store, hash-verified

1411 }
1412
1413 function getFullTrace(traceIndex) {
1414 // usually fullData maps 1:1 onto data, but with groupby transforms
1415 // the fullData index can be greater. Take the *first* matching trace.
1416 for (var j = traceIndex; j < fullData.length; j++) {
1417 if (fullData[j]._input === data[traceIndex]) return fullData[j];
1418 }
1419 // should never get here - and if we *do* it should cause an error
1420 // later on undefined fullTrace is passed to nestedProperty.
1421 }
1422
1423 // for attrs that interact (like scales & autoscales), save the
1424 // old vals before making the change

Callers 2

doextraFunction · 0.85
_restyleFunction · 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…