Heat transfer along the route to chaos of a swaying thermal plume