Allow for range of 1, refactor of https://github.com/novus/nvd3/pull/662