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

Function toDataCoords

src/traces/cone/convert.js:57–61  ·  view source on GitHub ↗
(arr, axisName)

Source from the content-addressed store, hash-verified

55 var coneOpts = {};
56
57 function toDataCoords(arr, axisName) {
58 var ax = sceneLayout[axisName];
59 var scale = dataScale[axisName2scaleIndex[axisName]];
60 return simpleMap(arr, function(v) { return ax.d2l(v) * scale; });
61 }
62
63 coneOpts.vectors = zip3(
64 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…