(attr)
| 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'); |
no test coverage detected