3 ms·
D3 has a nice formatting helper functions: > d3.format('.2%')(.223) "22.30%" https://github.com/mbostock/d3/wiki/Formatting https://github.com/mbost
by 1wheel 13y ago
D3 has a nice formatting helper functions:
> d3.format('.2%')(.223)
"22.30%"
https://github.com/mbostock/d3/wiki/Formatting https://github.com/mbostock/d3/wiki/Formatting
It'd also be cool if mousing over the inner circle updated the coloring of teams, showing their probability of reaching a certain game.
- bertil 13y agoIndeed — but the thing is to make that conditional with the size of the number and not mess up with the layout. Doable, but it's the kind of thing that makes a great presentation hours away from a usable one. As for the highlight… Yes, I though about that, but it makes things complicated: you have to decide what threshold to cut, and sport team fans are very passionate, so that would ostracise the remaining teams.