upsetjs export function denormalize ( range ) { const delta = range [ 1 ] - range [ 0 ] ; return ( v ) => v * delta + range [ 0 ] ; } export default function normalize ( domain ) { const delta = domain [ 1 ] - domain [ 0 ] ; return ( v ) => ( v - domain [ 0 ] ) / delta ; }