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
The number conversion in the d3.median function is not consistent. If there is one number value among other strings, the conversion works as expected. If there are solely numbers as string values, the median string is returned. However, if solely characters are passed to d3.median, undefined is returned.
Here are some examples:
d3.median([2,3,20])
returns 3 as expected
d3.median(["2",3,"20"])
returns 3 as expected
d3.median(["2","3","20"])
returns 20 whereas expected 3
d3.median(["a","b","c"])
returns undefined as expected
The text was updated successfully, but these errors were encountered:
The number conversion in the d3.median function is not consistent. If there is one number value among other strings, the conversion works as expected. If there are solely numbers as string values, the median string is returned. However, if solely characters are passed to d3.median, undefined is returned.
Here are some examples:
d3.median([2,3,20])
returns 3 as expected
d3.median(["2",3,"20"])
returns 3 as expected
d3.median(["2","3","20"])
returns 20 whereas expected 3
d3.median(["a","b","c"])
returns undefined as expected
The text was updated successfully, but these errors were encountered: