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