(axis, shift)
| 354 | |
| 355 | exports.getPixelShift = getPixelShift; |
| 356 | function getPixelShift(axis, shift) { |
| 357 | shift = shift || 0; |
| 358 | var shiftPixels = 0; |
| 359 | if(shift && axis && (axis.type === 'category' || axis.type === 'multicategory')) { |
| 360 | shiftPixels = (axis.r2p(1) - axis.r2p(0)) * shift; |
| 361 | } |
| 362 | return shiftPixels; |
| 363 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…