Rgraph instead of chart.js
changed json_decode to be done in controller