I want to format Y-axis data in D3 Line chart. It's about world population so that is quite large.
I am currently using below code, which is showing "G" instead of "B".
If you like the formatting of SI-prefix, but not the actual prefix, just swap it out with a simple
var f = d3.format("0.2s"); document.write( f(1e9).replace(/G/,"B") );