Calculates the interval for the domain based on the config value. This logic already existed https://github.com/racker/glimpse.js/blob/master/src/graphs/graph.js#L221-233, just moved it to its own function so that it can changed appropriately when the data refactor happens.