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
This seems possibly related to an old issue (#157) or the recent TypeScript rewrite, but I'm finding that with LegendThreshold, the last box isn't rendered. I have a scale with 5 breaks and thus (AFAIU) 6 colors. I built a base example with 2 workaround attempts here. As a rundown:
First version, just passing the 5-break, 6-color scale to LegendThreshold gives a legend with "Less than..." on the first box but no corresponding "More than..." on the last one. I checked that the scale is valid though by calling the scale function on a high value (see console log)
Second version, explicitly adding 1.0 to the end of the scale domain. This works, but hardcoding an upper limit means there's no "more than..." which would be more appropriate for this type of scale
Third version, based on the component's source code (at least the gist of it, I don't know TypeScript) was to add null to the end of the domain, but now the last box says "0.62More than" instead of "More than 0.62"
I should also mention that as another workaround, setting labelUpper=' or higher' works fine to get "0.62 or higher". Just wanted to bring up the fact that the default "More than 0.62" was broken.
Let me know if I'm misunderstanding something, or if I can help on it. Thanks in advance!
The text was updated successfully, but these errors were encountered:
This seems possibly related to an old issue (#157) or the recent TypeScript rewrite, but I'm finding that with LegendThreshold, the last box isn't rendered. I have a scale with 5 breaks and thus (AFAIU) 6 colors. I built a base example with 2 workaround attempts here. As a rundown:
null
to the end of the domain, but now the last box says "0.62More than" instead of "More than 0.62"I should also mention that as another workaround, setting
labelUpper=' or higher'
works fine to get "0.62 or higher". Just wanted to bring up the fact that the default "More than 0.62" was broken.Let me know if I'm misunderstanding something, or if I can help on it. Thanks in advance!
The text was updated successfully, but these errors were encountered: