alexyoung/ico — Issue #14: Misleading/incorrect element selectors in documentation
Author: juhamust
Created: 2012-02-08 06:14:19+00:00
State: open

The project home page shows few graph examples, like:

```javascript
new Ico.BarGraph($('bargraph'), { one: $random(1, 25) }, { bar_labels: true });
```

Unfortunatelly, the selector used in examples is incorrect/does not work: element selector returns either empty list or multiple entries while simple element is expected. This confuses the users (like me!) trying to use library at first.

The reason why the actual graphs are shown is because ```document.getElementById``` is used instead.
Thus, in examples, use either:

* jQuery: ```$('#bargraph')[0]```
* Javascript: ```document.getElementById('bargraph')```