Google Groups Home
Help | Sign in
Introducing gchartrb - Ruby wrapper around the Google Chart API
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Deepak Jois  
View profile  
 More options Dec 9 2007, 11:01 pm
From: "Deepak Jois" <deepak.j...@gmail.com>
Date: Mon, 10 Dec 2007 12:01:47 +0800
Local: Sun, Dec 9 2007 11:01 pm
Subject: Introducing gchartrb - Ruby wrapper around the Google Chart API

Hi
As you may already know, Google introduced its Charting API which can help
you generate some very good Graphs/Charts using their Online querystring
based API, http://code.google.com/apis/chart

I wrote a Ruby wrapper around it which is located at
http://code.google.com/p/gchartrb . A lot of the inspiration for the API
came from te Gruff library.
The code is currently in subversion, but most of the imprtant features
are already done. I am hoping to make a release by the end of the
week.

Feedback and comments are appreciated :)

Deepak


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
choonkeat  
View profile  
 More options Dec 10 2007, 12:08 am
From: choonkeat <choonk...@gmail.com>
Date: Mon, 10 Dec 2007 13:08:05 +0800
Local: Mon, Dec 10 2007 12:08 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API

Beautiful! I've put it into use for my backend stats already!

Qn: Any chance all the options become a "hash" argument at the end of the
initialize methods so we can customize in 1 shot? I find possible booleans
easier to understand/discover like that

lc = GoogleChart::LineChart.new('320x200', "Title", {
  is_xy: true, show_legend: false, show_labels: true,

})

Qn: Convenient to add a 'yield self if block_given?" at the bottom of each
initialize method, so that I can use it block style?

lc = GoogleChart::LineChart.new('320x200', "Title") do |c|
  c.data "Trend 1", [5,4,3,1,3,5,6], '0000ff'
  c.data "Trend 2", [1,2,3,4,5,6], '00ff00'
  c.data "Trend 3", [6,5,4,3,2,1], 'ff0000'
end

--
choonkeat

On Dec 10, 2007 12:01 PM, Deepak Jois <deepak.j...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deepak Jois  
View profile  
 More options Dec 10 2007, 12:24 am
From: "Deepak Jois" <deepak.j...@gmail.com>
Date: Mon, 10 Dec 2007 13:24:59 +0800
Local: Mon, Dec 10 2007 12:24 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API

On 12/10/07, choonkeat <choonk...@gmail.com> wrote:

> Beautiful! I've put it into use for my backend stats already!

> Qn: Any chance all the options become a "hash" argument at the end of the
> initialize methods so we can customize in 1 shot? I find possible booleans
> easier to understand/discover like that

> lc = GoogleChart::LineChart.new('320x200', "Title" , {
>   is_xy: true, show_legend: false, show_labels: true,
> })

Good suggestion. Will think of a nice way to include that.

I also wanted to add that you can directly manipulate the hash used to
generate the URL by
looking for the params attribute. This is useful if you want features that
have not been implemented yet.

Qn: Convenient to add a 'yield self if block_given?" at the bottom of each

> initialize method, so that I can use it block style?

> lc = GoogleChart::LineChart.new('320x200', "Title" ) do |c|
>   c.data "Trend 1", [5,4,3,1,3,5,6], '0000ff'
>   c.data "Trend 2", [1,2,3,4,5,6], '00ff00'
>   c.data "Trend 3", [6,5,4,3,2,1], 'ff0000'
> end

Great suggestion again.. let me look at that. But you can always send
patches :)..

Deepak


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JasonOng  
View profile  
 More options Dec 10 2007, 1:32 am
From: JasonOng <velve...@gmail.com>
Date: Sun, 9 Dec 2007 22:32:00 -0800 (PST)
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API
Thanks Deepak! Now we can have a simple (and cheap) powerful
alternative to charting in ruby. :)

On Dec 10, 1:24 pm, "Deepak Jois" <deepak.j...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
choonkeat  
View profile  
 More options Dec 10 2007, 1:37 am
From: choonkeat <choonk...@gmail.com>
Date: Mon, 10 Dec 2007 14:37:28 +0800
Local: Mon, Dec 10 2007 1:37 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API

There you go, my attempt #1
http://pastie.caboo.se/private/5gtimkszj2x9vmtclwkw

I don't have a solution for bar_chart.rb (regarding the call to
set_chart_type) at the moment.

Cheers
--
choonkeat

On Dec 10, 2007 2:32 PM, JasonOng <velve...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ezwan Aizat Abdullah faiz  
View profile  
 More options Dec 10 2007, 3:33 am
From: Ezwan Aizat Abdullah faiz <aizat.f...@gmail.com>
Date: Mon, 10 Dec 2007 16:33:52 +0800
Local: Mon, Dec 10 2007 3:33 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API

Hi guys,

Just saw this on Riding on Rails, he also created his own gem, though  
the link for it isn't up yet.

http://www.railsontherun.com/2007/12/10/google-chart-gem

Regards,
Aizat

On Dec 10, 2007, at 12:01 PM, Deepak Jois wrote:

aizatto - sleep to the power of z -_-^zzz
http://aizatto.com/

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deepak Jois  
View profile  
 More options Dec 11 2007, 3:45 am
From: "Deepak Jois" <deepak.j...@gmail.com>
Date: Tue, 11 Dec 2007 16:45:40 +0800
Local: Tues, Dec 11 2007 3:45 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API

On 12/10/07, Ezwan Aizat Abdullah faiz <aizat.f...@gmail.com> wrote:

> Hi guys,

> Just saw this on Riding on Rails, he also created his own gem, though the
> link for it isn't up yet.

> http://www.railsontherun.com/2007/12/10/google-chart-gem

Nothing like a bit of competition to keep you motivated :). I finally got
off my back and finished the RDoc documentation and also published a gem.

http://gchartrb.rubyforge.org

Deepak


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JasonOng  
View profile  
 More options Dec 11 2007, 4:57 am
From: JasonOng <velve...@gmail.com>
Date: Tue, 11 Dec 2007 01:57:03 -0800 (PST)
Local: Tues, Dec 11 2007 4:57 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API
Awesome. Great job Deepak!

On Dec 11, 4:45 pm, "Deepak Jois" <deepak.j...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chuyeow@gmail.com  
View profile  
 More options Dec 11 2007, 11:38 am
From: "chuy...@gmail.com" <chuy...@gmail.com>
Date: Tue, 11 Dec 2007 08:38:56 -0800 (PST)
Local: Tues, Dec 11 2007 11:38 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API
Damn quick, Deepak! I like it, something we'll definitely be
considering using when we have new reporting/stats work that needs to
be done.

Some link juice + a bit of publicity for you:
http://blog.codefront.net/2007/12/12/gchartrb-ruby-google-chart-api/

Nice work!

On Dec 11, 5:57 pm, JasonOng <velve...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sau Sheong Chang  
View profile  
 More options Dec 11 2007, 9:32 pm
From: "Sau Sheong Chang" <saushe...@gmail.com>
Date: Wed, 12 Dec 2007 10:32:02 +0800
Local: Tues, Dec 11 2007 9:32 pm
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API

Excellent Deepak! I was thinking of using the Google Charting API the other
day for one of my apps and here it is, a Ruby wrapper literally just at my
doorstep. Really cool!

On Dec 12, 2007 12:38 AM, chuy...@gmail.com <chuy...@gmail.com> wrote:

--
Sausheong

http://blog.saush.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Sanguinetti  
View profile  
 More options Dec 13 2007, 7:55 pm
From: Nicolas Sanguinetti <godf...@gmail.com>
Date: Thu, 13 Dec 2007 16:55:36 -0800 (PST)
Local: Thurs, Dec 13 2007 7:55 pm
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API
On Dec 10, 3:08 am, choonkeat <choonk...@gmail.com> wrote:

> Qn: Convenient to add a 'yield self if block_given?" at the bottom of each
> initialize method, so that I can use it block style?

> lc = GoogleChart::LineChart.new('320x200', "Title") do |c|
>   c.data "Trend 1", [5,4,3,1,3,5,6], '0000ff'
>   c.data "Trend 2", [1,2,3,4,5,6], '00ff00'
>   c.data "Trend 3", [6,5,4,3,2,1], 'ff0000'
> end

Even further, alias :to_s :to_url
So you can just

puts GoogleChart::LineChart.new('320x200', "Title") do |c|
  c.data ....
end

That way you can just pass the graph into an string interpolation and
have ruby call to_s implicitly :)

Best,
-Nicolas


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deepak Jois  
View profile  
 More options Dec 13 2007, 8:58 pm
From: "Deepak Jois" <deepak.j...@gmail.com>
Date: Fri, 14 Dec 2007 09:58:03 +0800
Local: Thurs, Dec 13 2007 8:58 pm
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API

On 12/12/07, chuy...@gmail.com <chuy...@gmail.com> wrote:

> Some link juice + a bit of publicity for you:
> http://blog.codefront.net/2007/12/12/gchartrb-ruby-google-chart-api/

Looks like the link juice really did wonders. I am getting a lot of referral
visits to the Google Code site :). Thanks!

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harish Mallipeddi  
View profile  
 More options Dec 13 2007, 10:14 pm
From: "Harish Mallipeddi" <harish.mallipe...@gmail.com>
Date: Fri, 14 Dec 2007 11:14:16 +0800
Local: Thurs, Dec 13 2007 10:14 pm
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API

Yup Chu Yeow is the man to go to get some referral traffic. Every time that
he ever linked to my blog, I noticed a huge spike :)

On Dec 14, 2007 9:58 AM, Deepak Jois <deepak.j...@gmail.com> wrote:

> On 12/12/07, chuy...@gmail.com <chuy...@gmail.com> wrote:

> > Some link juice + a bit of publicity for you:
> > http://blog.codefront.net/2007/12/12/gchartrb-ruby-google-chart-api/

> Looks like the link juice really did wonders. I am getting a lot of
> referral visits to the Google Code site :). Thanks!

--
Harish Mallipeddi
Software Engineer
Work: http://www.circos.com
Blog: http://poundbang.in
Mobile: (+65) 96976230
GTalk: harish.mallipeddi

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chuyeow@gmail.com  
View profile  
 More options Dec 14 2007, 3:07 am
From: "chuy...@gmail.com" <chuy...@gmail.com>
Date: Fri, 14 Dec 2007 00:07:21 -0800 (PST)
Local: Fri, Dec 14 2007 3:07 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API
Heh my normal traffic isn't that crazy though - this time my blog post
got DZone'd - http://dzone.com/links/gchartrb_ruby_google_chart_api.html

On Dec 14, 11:14 am, "Harish Mallipeddi" <harish.mallipe...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JasonOng  
View profile  
 More options Dec 15 2007, 12:19 am
From: JasonOng <velve...@gmail.com>
Date: Fri, 14 Dec 2007 21:19:23 -0800 (PST)
Local: Sat, Dec 15 2007 12:19 am
Subject: Re: Introducing gchartrb - Ruby wrapper around the Google Chart API
Yeah I saw your post on DZone :)

On Dec 14, 4:07 pm, "chuy...@gmail.com" <chuy...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google