fix minYAxis function: handle empty list of earthquakes