fix formatAxis for cases with gaps >= 10