function getBaseScales(type, domain, range, nice, tickCount) {
  const factory = (type === 'time' && scaleUtc) || (type === 'log' && scaleLog) || scaleLinear
  const scale = createScale(factory, domain, range)
  if (nice) scale.nice(tickCount)
  return scale
}
function getBaseScales(type, domain, range, nice, tickCount) {
  const factory = (type === 'time' && scaleUtc) || (type === 'log' && scaleLog) || scaleLinear
  const scale = createScale(factory, domain, range)
  if (nice) scale.nice(tickCount)
  return scale
}
function getBaseScales ( type , domain , range , nice , tickCount ) { const factory = ( type === 'time' && scaleUtc ) || ( type === 'log' && scaleLog ) || scaleLinear const scale = createScale ( factory , domain , range ) if ( nice ) scale . nice ( tickCount ) return scale }
get a scale with logic for the x and y axis, if the domain starts and finishes on the same number returns the mid range value
get a scale with logic for the x and y axis if the domain starts and finishes on the same number returns the mid range value