Transition of axial to planar channeling