Retentio/Boomgraph — Issue #10: Crash with all values at 0
Author: oelmekki
Created: 2012-02-24 13:35:56+00:00
State: open

When all value provided are 0, the lib will crash. That's because a [Math.log(0) is executed (which return -Infinity) and passed to .toFixed()](https://github.com/Retentio/Boomgraph/blob/master/Choopy.js#L1004), called from [here](https://github.com/Retentio/Boomgraph/blob/master/Choopy.js#L514).

Fix :

```javascript
var c=Math.floor(Math.LOG10E*(a ? Math.log(a) : 0 )),d;
```