datarange should ignore nan's in min/max computation