You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thought this would be easy to reproduce, but I can't seem to do it minimally. At this point, seems more likely a bug in my code than in d3-legend. Closing for this for now...
It looks like the wrong colors are used when colorLegend is passed a scale whose range includes more colors than values in the domain.
As an example, the mismatched colors will result when using
d3.scaleOrdinal(d3.schemeCategory10)
when only two values in the domain are present.The text was updated successfully, but these errors were encountered: