I considered an alternative where we would generate a ramp “from x to x” if there is 1 element, and “from NaN to NaN” if there is none. This would show the interpolator colors (like below).
However the bug report shows that we might be in a case where we normally expect an ordinal scale, but since the empty domain makes it impossible to automatically determine if we're ordinal or linear, the ramp is just a consequence of having defaulted to linear.
closes #2210
I considered an alternative where we would generate a ramp “from x to x” if there is 1 element, and “from NaN to NaN” if there is none. This would show the interpolator colors (like below).
However the bug report shows that we might be in a case where we normally expect an ordinal scale, but since the empty domain makes it impossible to automatically determine if we're ordinal or linear, the ramp is just a consequence of having defaulted to linear.