Simple Graphing Library

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

···

--
$stdout.sync = true
"Just another Ruby hacker.".each_byte do |b|
  ('a'..'z').step do|c|print c+"\b";sleep 0.007 end;print b.chr
end; print "\n"

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 ?

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

···

On Fri, 7 Jan 2005 21:06:28 +0900, gabriele renzi <rff_rff@remove-yahoo.it> wrote:

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 ?

--
$stdout.sync = true
"Just another Ruby hacker.".each_byte do |b|
  ('a'..'z').step do|c|print c+"\b";sleep 0.007 end;print b.chr
end; print "\n"

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

-austin

···

On Fri, 7 Jan 2005 23:26:49 +0900, Bill Atkins <batkins57@gmail.com> wrote:

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?

--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca

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.

gabriele renzi wrote:

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?

imagemagick, runs ons windows and unix/linux

···

--
"May the source be with you"

Austin Ziegler wrote:

···

On Fri, 7 Jan 2005 23:26:49 +0900, Bill Atkins <batkins57@gmail.com> wrote:

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

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.

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).

···

On Fri, 07 Jan 2005 16:26:17 +0100, Aquila <braempje@netscape.net> wrote:

gabriele renzi wrote:

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?

imagemagick, runs ons windows and unix/linux

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

···

On Sat, 8 Jan 2005 18:31:26 +0900, Sarah Tanembaum <sarahtanembaum@yahoo.com> wrote:

Austin Ziegler wrote:
> On Fri, 7 Jan 2005 23:26:49 +0900, Bill Atkins <batkins57@gmail.com > wrote:
>>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.
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.

--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca