Serverside chart generator


#1

Does any of you know of a good server-side tool for generating
line-charts - command-line tool will suffice (one that spits out a JPG,
SVG, PNG or such)

Something integrated in Ruby would be even nicer :slight_smile:

  • Carsten

#2

On 09 Feb 2009, at 14:28, Carsten G. wrote:

Does any of you know of a good server-side tool for generating
line-charts - command-line tool will suffice (one that spits out a
JPG,
SVG, PNG or such)

Something integrated in Ruby would be even nicer :slight_smile:

Gruff (http://rubyforge.org/projects/gruff/) or Scruffy
(http://scruffy.rubyforge.org/
)

Best regards

Peter De Berdt


#3

Or, maybe you could use something like google charts:

http://code.google.com/apis/chart/

There are some rails wrappers:

http://code.google.com/p/google-charts-on-rails/
http://code.google.com/p/gc4r/http://code.google.com/p/google-charts-on-rails/

or you can just roll your own fairly easily. Whether you can generate/
reference such google charts in your app in real-time by the client’s
browser or pre-fetched and stored on the server depends on your app
needs/usage.

Jeff


#4

ziya gives you great looking swf graphs.

Instructions to install the gem and samples:

http://ziya.liquidrail.com/


#5

Peter De Berdt wrote:

Gruff (http://rubyforge.org/projects/gruff/) or Scruffy
(http://scruffy.rubyforge.org/

Thanks a lot! I am working with Scruffy now, and it works like a charm.
:slight_smile:

One thing I cannot figure out though is: How do I change the legend from
horizontal to vertical? Do I need to create my own Renderer class?

  • Carsten