createScale ran checkDomain on the output range, which forbids min > max — so
world-viewer's trajectoryPlotGeometry (which passes an inverted Y range
{min: height-padding, max: padding} to flip SVG's downward Y) threw "invalid
domain" for EVERY input. A range is not a domain: it may legitimately descend to
flip an axis. Added checkRange (finite + non-zero span, order-agnostic) and used
it for the range argument; checkDomain stays strict for the domain.
Tests: a descending range maps domain-min -> range.min and domain-max ->
range.max (axis flip), and a zero-span range is still rejected. chart-core 10
pass.