| 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 |