jeremyolliver / gvis

Rails plugin for easy embedding charts with Google Visualization API
http://github.com/jeremyolliver/gvis
MIT License
49 stars 22 forks source link

Error while getting rows equal to data.last row in data_table class js_format_data function #1

Closed rennyhernandez closed 14 years ago

rennyhernandez commented 14 years ago

It generates a duplicated ] symbol following rows equal last row. It gets solved by changing line 49 for: @data.each_with_index do |row,i| and line 63 for: ds += i == @data.size - 1 ? "]" : ","

jeremyolliver commented 14 years ago

I believe someone else has already fixed this same issue for me recently. I've pulled in their changes earlier today. Try using the latest revision now.

Thanks, Jeremy

jeremyolliver commented 14 years ago

closing this issue