alexyoung/ico — Issue #13: Incorrect graph with all zero values
Author: juhamust
Created: 2012-02-07 17:10:31+00:00
State: open

The graph is shown incorrectly (straight line above the graph, no labels) when *all* the values are zero. Expected outcome is have flat line at level 0.

```javascript
var placeholder = document.getElementById('graph');

// var values = [0, 1, 4, 3]; // <-- OK
var values = [0, 0, 0, 0]; // <-- NOK
new Ico.LineGraph(placeholder, values,
{colour:'#ff0000', labels:['one', 'two', 'three', 'four'], height:300, width: 300}
);
```
Used versions:
* Ico (latest from master): 15e69ac4da850c0639f1569f2f408e0b57471b86
* Raphael.js: 2.0.1