[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Simple Graphing Library

Bill Atkins

1/7/2005 5:24:00 AM

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"


8 Answers

gabriele renzi

1/7/2005 12:03:00 PM

0

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 ?

Bill Atkins

1/7/2005 2:27:00 PM

0

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"


Austin Ziegler

1/7/2005 3:11:00 PM

0

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
--
Austin Ziegler * halostatue@gmail.com
* Alternate: austin@halostatue.ca


gabriele renzi

1/7/2005 3:20:00 PM

0

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.

Aquila

1/7/2005 3:26:00 PM

0

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"

Tim Hunter

1/7/2005 5:29:00 PM

0

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

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

Sarah Tanembaum

1/8/2005 9:29:00 AM

0

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.

Austin Ziegler

1/9/2005 3:14:00 AM

0

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.

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
--
Austin Ziegler * halostatue@gmail.com
* Alternate: austin@halostatue.ca