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

Function d2c

src/traces/barpolar/calc.js:34–41  ·  view source on GitHub ↗
(attr)

Source from the content-addressed store, hash-verified

32 // set 'c' value(s) in trace._width and trace._offset,
33 // to make Bar.crossTraceCalc "just work"
34 function d2c(attr) {
35 var val = trace[attr];
36 if(val !== undefined) {
37 trace['_' + attr] = isArrayOrTypedArray(val) ?
38 angularAxis.makeCalcdata(trace, attr) :
39 angularAxis.d2c(val, trace.thetaunit);
40 }
41 }
42
43 if(angularAxis.type === 'linear') {
44 d2c('width');

Callers 2

calcFunction · 0.70
initBaseFunction · 0.50

Calls 1

isArrayOrTypedArrayFunction · 0.50

Tested by

no test coverage detected