(position)
| 30 | } |
| 31 | |
| 32 | function axisFromPosition(position) { |
| 33 | if (position === 'top' || position === 'bottom') { |
| 34 | return 'x'; |
| 35 | } |
| 36 | if (position === 'left' || position === 'right') { |
| 37 | return 'y'; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * The axis of the first letter of the id, when the scale's type allows it: |
no outgoing calls
no test coverage detected