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

Function y2rpx

src/traces/sunburst/plot.js:164–166  ·  view source on GitHub ↗
(y)

Source from the content-addressed store, hash-verified

162 // partition span ('y') to sector radial px value
163 var maxY = Math.min(maxHeight, maxDepth);
164 var y2rpx = function (y) {
165 return ((y - yOffset) / maxY) * rMax;
166 };
167 // (radial px value, partition angle ('x')) to px [x,y]
168 var rx2px = function (r, x) {
169 return [r * Math.cos(x), -r * Math.sin(x)];

Callers 1

plotOneFunction · 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…