Online graph creator in Rails