I have not used a rickshaw, but look at this example on the main page:
var y_axis = new Rickshaw.Graph.Axis.Y( {
graph: graph,
orientation: 'left',
tickFormat: Rickshaw.Fixtures.Number.formatKMBT,
element: document.getElementById('y_axis'),
} );
It looks like you can pass the tickMormat function. In this case, formatKMBT is passed, and it looks like this:
Rickshaw.Fixtures.Number.formatKMBT = function(y) {
var abs_y = Math.abs(y);
if (abs_y >= 1000000000000) { return y / 1000000000000 + "T" }
else if (abs_y >= 1000000000) { return y / 1000000000 + "B" }
else if (abs_y >= 1000000) { return y / 1000000 + "M" }
else if (abs_y >= 1000) { return y / 1000 + "K" }
...ect
Here you can use the d3 built-in number formatters or collapse your own. For instance:
function yAxisFormat(d){ return d.toFixed(8); }