Simple Graphing Library

B

Bill Atkins

I'm looking for a Ruby library that can generate line, bar, and pie
graphs from financial data- similar to the graphs Excel generates. I
want to be able to graph data on the fly and then output it as an
image file for viewing over the web (from within a Rails application).

Is there anything that can do this? I've found some libraries on RAA
for flowchart-style graphs or general graphics libraries, but nothing
so far that matches my needs.

Bill
 
G

gabriele renzi

Bill Atkins ha scritto:
I'm looking for a Ruby library that can generate line, bar, and pie
graphs from financial data- similar to the graphs Excel generates. I
want to be able to graph data on the fly and then output it as an
image file for viewing over the web (from within a Rails application).

Is there anything that can do this? I've found some libraries on RAA
for flowchart-style graphs or general graphics libraries, but nothing
so far that matches my needs.

sis you try svg::graph ?
 
B

Bill Atkins

I looked into it, but I'd rather use PNG or some other image format,
since my users will most likely not have SVG support. Is there some
way to convert SVG's to PNG's?

Bill
 
A

Austin Ziegler

I looked into it, but I'd rather use PNG or some other image format,
since my users will most likely not have SVG support. Is there some
way to convert SVG's to PNG's?

What about RVG? It's a Ruby library, using RubyMagick and ImageMagick,
that appears to allow SVG-style drawing on PNGs.

-austin
 
G

gabriele renzi

Bill Atkins ha scritto:
I looked into it, but I'd rather use PNG or some other image format,
since my users will most likely not have SVG support. Is there some
way to convert SVG's to PNG's?

Bill

Well, you can, for sure, but I'm not sure if there is an automatized
way. Maybe inkscape or sodipodi would allow this.
 
T

Tim Hunter

imagemagick, runs ons windows and unix/linux

ImageMagick will convert SVG to other image formats, but its
capabilities are limited. What it does it does well but it only
supports a subset of SVG. (The author of ImageMagick tells me he's
going to be enhancing IM's SVG support very soon.) The ImageMagick
binding for Ruby is RMagick (http://rmagick.rubyforge.org).
 
S

Sarah Tanembaum

Austin said:
What about RVG? It's a Ruby library, using RubyMagick and ImageMagick,
that appears to allow SVG-style drawing on PNGs.

-austin
There are problems for DisplayViewer with RMagick and ImageMagick for
both the Windows Version and X Display Version. Look the archives, there
are some threads discussing this issus.
 
A

Austin Ziegler

There are problems for DisplayViewer with RMagick and ImageMagick for
both the Windows Version and X Display Version. Look the archives, there
are some threads discussing this issus.

Right; I was involved with those discussions and proposed that RMagick
actually fake out the interface for Windows using a Fox display item.

However, Mr Atkins's problem is specifically for the web -- where the
DisplayViewer capabilities aren't required. He can simply toss the
image to a webserver to see that it's right.

This is still the right solution.


-austin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top