Fix graph controller to use params instead of hardcode number for graph ...

...data
how has this not been fixed yet?
![](http://ic.pics.livejournal.com/ntv/14201556/530547/530547_original.gif)