score:33

Accepted answer

declare formatter

formatvalue = d3.format(".2s");

use inside tickformat

.tickformat(function(d) { return formatvalue(d)});

to replace m with million try this..

.tickformat(function(d) { return formatvalue(d).replace('m', 'million'); });

Related Query

More Query from same tag