glasnt/rickshaw — pull request #3 by glasnt (2014-04-14 04:17:31+00:00)
Title: rounded number fixtures

Having a number fixture is good for showing nice units on axes, but depending on the range of the axes, the precision shown throws the axis out in formatting styles. E.g having 1.66666667G looks bad on an axis.

This change includes a new Fixture type, _round, for both base10 and base2 number fixtures.

The excess parameter definition is a work in progress. From local commit msgs:

> Add precison parameter to _round fixtures in Rickshaw
> Note a,b parameters - d3 will send ,a,b to this function, where a is an
> incrementor(?) and b is another value. Therefore,for another parameter to be
> added, it needs to be a 4th parameter