Josh Harris

Results 2 comments of Josh Harris

This appears to be a problem with Chrome's `.toFixed()` function, where numbers ending in 5 won't round up. The workaround is to use `Math.round()` before calling `.toFixed()`. This seems to...

I made a local branch to submit a PR but I don't have write access. The needed change is to [formatTypes.js](https://github.com/d3/d3-format/blob/main/src/formatTypes.js). `"f": (x, p) => (Math.round(x * Number('1e' + p))...