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

Function t2g

src/traces/indicator/plot.js:403–405  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

401
402 // 't'ick to 'g'eometric radians is used all over the place here
403 var t2g = function(d) {
404 return (ax.range[0] - d.x) / (ax.range[1] - ax.range[0]) * Math.PI + Math.PI;
405 };
406
407 var labelFns = {};
408 var out = Axes.makeLabelFns(ax, 0);

Callers 3

drawAngularGaugeFunction · 0.85
transFn2Function · 0.85
polar.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected