Fixed how xDomain is calculated from the data/min/max to be consistent with different options

Fixes #166