var max = (props.max === null || props.max === undefined) ? domain[1] : new Date(props.max).getTime();