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
Given the above scale and .labels(d3.legendHelpers.thresholdLabels), d3-scale will produce the following legend:
RED Less than 0.0
WHITE 0.0 to 1.0
GREEN More than 1.0
... where the last label being "more than" incorrectly suggests that 1.0 would not be green. In other words, the slice is inclusive but its label is exclusive.
It should say "1.0 or more".
"Less than" at the other end of the scale is correct, because 0 is the upper bound of that slice and is therefore exclusive.
The text was updated successfully, but these errors were encountered:
Threshold scale domain values indicate the lower bound of every slice except the first. They are inclusive:
Given the above scale and
.labels(d3.legendHelpers.thresholdLabels)
, d3-scale will produce the following legend:... where the last label being "more than" incorrectly suggests that 1.0 would not be green. In other words, the slice is inclusive but its label is exclusive.
It should say "1.0 or more".
"Less than" at the other end of the scale is correct, because 0 is the upper bound of that slice and is therefore exclusive.
The text was updated successfully, but these errors were encountered: