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

Function toDataCoords

src/traces/volume/convert.js:67–71  ·  view source on GitHub ↗
(axis, coord, scale, calendar)

Source from the content-addressed store, hash-verified

65
66 // Unpack position data
67 function toDataCoords(axis, coord, scale, calendar) {
68 return coord.map(function(x) {
69 return axis.d2l(x, 0, calendar) * scale;
70 });
71 }
72
73 var positions = zip3(
74 toDataCoords(layout.xaxis, data._meshX, scene.dataScale[0], data.xcalendar),

Callers 1

convert.jsFile · 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…