winston / google_visualr

A Ruby Gem for the Google Visualization API. Write Ruby code. Generate Javascript. Display a Google Chart.

Home Page:http://googlevisualr.heroku.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can google visualization calls be made without having rails set up?

gnilrets opened this issue · comments

I have some data in a Ruby program that I'd to quickly view formatted in a nice grid. You can do something like this with the Google Visualization plugin for R. Basically, I call a method on an R dataset and it pops open a browser tab with the table displayed. I'd love to be able to reproduce some of that functionality in a Ruby app.

Is there any way to use this gem to run a ruby command and have it pop open a browser tab with the data table/chart without having rails?

Yes. It is possible. The only integration with Rails is the view helper
which just calls chart.to_js. Everything else is just Ruby code.

You will have to write your own Ruby method to pop open a browser and load
the chart though as the gem does not have that functionality.

Hope this helps!

On Saturday, March 8, 2014, Sterling Paramore notifications@github.com
wrote:

I have some data in a Ruby program that I'd to quickly view formatted in a
nice grid. You can do something like this with the Google Visualization
plugin for R. Basically, I call a method on an R dataset and it pops open a
browser tab with the table displayed. I'd love to be able to reproduce some
of that functionality in a Ruby app.

Is there any way to use this gem to run a ruby command and have it pop
open a browser tab with the data table/chart without having rails?


Reply to this email directly or view it on GitHubhttps://github.com//issues/67
.

Cheers,
Winston

Ok, cool. Any suggestions on how to write a method to pop open a browser and load the chart?

Nevermind. Think I got something figured out using this and Launchy(https://github.com/copiousfreetime/launchy).

This is going to be awesome. Thank you!

Sorry I was away on vacation and hence couldn't reply in time.

Great that you found a solution to your needs. Let me know how it goes. Thanks! :)