Skip to content

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Oct 28, 2024

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.

Capture d’écran 2024-10-28 à 07 02 39
Capture d’écran 2024-10-28 à 07 02 26

@Fil Fil requested a review from mbostock October 28, 2024 06:05
@Fil
Copy link
Contributor Author

Fil commented Nov 19, 2024

superseded by #2212

@Fil Fil closed this Nov 19, 2024
@Fil Fil deleted the fil/legend-empty-domain branch November 19, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: o[n] is not a function for empty color domain

1 participant