Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Best module for generating Pie Charts and Bar Graphs

by scottj (Monk)
on Jan 31, 2004 at 01:19 UTC ( [id://325479]=perlquestion: print w/replies, xml ) Need Help??

scottj has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks, I'm seeking the most elegant module for generating PNG pie charts and bar graphs on a website. I've seen references to GD::Graph and Apache::GD::Graph.

Are there any others that I should check out? Or are these the best way to go? Opinions welcome, of course.

Update: Apache::GD::Graph installed rather easily and is working quite well. Thanks for everyone's input.
  • Comment on Best module for generating Pie Charts and Bar Graphs

Replies are listed 'Best First'.
Re: Best module for generating Pie Charts and Bar Graphs
by Caron (Friar) on Jan 31, 2004 at 06:29 UTC

    Here's another choice: DBD::chart

    I don't know if it's the best, but it's surely one more to check out. It works like any DBD, as a DBI extension. Therefore, if you are already using a DBD module, you know already the interface.

    Here are some examples.

      Thanks for the excellent examples link Caron. I had read the docs for DBD::chart earlier today, and it looked interesting. Now that I'm also seeing the DBIx::Chart docs, the possibilities look very interesting.

      I'll have to keep an eye on these projects, but for now, I think the GD::Chart stuff is probably going to suit my needs better.
Re: Best module for generating Pie Charts and Bar Graphs
by jweed (Chaplain) on Jan 31, 2004 at 01:27 UTC
    Since this is a web-based question, Apache::GD::Graph is optimal if you are using apache (duh). GD::Graph is the other basic graph module, but its implementation is not as lightweight as the Apache module, so if the graphs are generated dynamically, there will be slightly more overhead.

    As for the other modules question, the answer is "Not Really." Frankly, GD::Graph is the end-all, be-all of graphing modules and is really useful almost anywhere.

    HTH.



    Code is (almost) always untested.
    http://www.justicepoetic.net/
      Frankly, GD::Graph is the end-all, be-all of graphing modules and is really useful almost anywhere.
      That's the kind of answer I was looking for. Of course, I'll be running mod_perl, so Apache::GD::Graph will likely be what I will use. Thanks for the advice!
      GD::Graph is great but I became somewhat annoyed by its limitations. Lately I've been using ChartDirector, it gives you absolute control over every detail. It is commercial software, however.
Re: Best module for generating Pie Charts and Bar Graphs
by borisz (Canon) on Jan 31, 2004 at 12:30 UTC
    Nobody recommended Imager so far. It produces nery nice graphics much nicer than GD but needs big ram and cpu power.
    Boris
Re: Best module for generating Pie Charts and Bar Graphs
by stefp (Vicar) on Jan 31, 2004 at 18:01 UTC
    ploticus is an excellent tool to generate all sorts of charts. It is a dedicated scripting language. You certainly can produce ploticus scripts using Perl.

    -- stefp

Re: Best module for generating Pie Charts and Bar Graphs
by Ao (Friar) on Jan 31, 2004 at 04:34 UTC
    There's also PNGgraph, but it's not specifically designed for on-the-fly web generation so it would require more coding from you than Apache::GD::Graph would.

    Is there some particular reason you are requiring PNG format instead of allowing some other browser-safe format?

        PNG's cool for browsers. Really cool.
        That IE hack sure does have some UGLY code, though. I much prefer the way Mozilla/Firebird handle things.
      Is there some particular reason you are requiring PNG format instead of allowing some other browser-safe format?
      I'm working on graphs and charts for an intranet site. Everybody at this very small company uses the latest and greatest browsers. The can all handle PNG. And then I just kind of prefer it, too. ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://325479]
Approved by jweed
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found