Coffeescript => Javascript
Return useful info from chart draw