MCPcopy Create free account
hub / github.com/plotly/plotly.js / toDataCoords

Function toDataCoords

src/traces/streamtube/convert.js:86–90  ·  view source on GitHub ↗
(arr, axisName)

Source from the content-addressed store, hash-verified

84 var tubeOpts = {};
85
86 function toDataCoords(arr, axisName) {
87 var ax = sceneLayout[axisName];
88 var scale = dataScale[axisName2scaleIndex[axisName]];
89 return Lib.simpleMap(arr, function(v) { return ax.d2l(v) * scale; });
90 }
91
92 tubeOpts.vectors = zip3(
93 toDataCoords(trace._u, 'xaxis'),

Callers 1

convertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…