Re: Server side chart/graph library?

2011-01-07 Thread David Cantrell
On Thu, Jan 06, 2011 at 01:10:43PM +, J?r?me Et?v? wrote:

 Yep, charting is what I need (as I don't really feel rolling my own
 charting lib on top of any low level one :) ).

I rolled my own, which I really should get round to releasing one day.
It produces PostScript, which can then be turned into other formats
using gv, imagemagick etc.

It handles line charts, bar charts (both with error bars), multiple data
sets per chart, pies, probably some other stuff I've forgotten.

-- 
David Cantrell
Professor of Unvironmental Science
University of Human Progress


Server side chart/graph library?

2011-01-06 Thread Jérôme Etévé
Hi!

Can you recommend any good server side Perl or Perl-bound graph/chart
plotting library.

I've got experience with gd but I remember struggling with unicode and
antialiasing and there's been no new version since 2007.

I'm wondering if anything more modern is around.

Cheers!

Jerome.

-- 
Jerome Eteve.

http://libsquare.net


Re: Server side chart/graph library?

2011-01-06 Thread Roger Burton West
On Thu, Jan 06, 2011 at 11:54:39AM +, J??r??me Et??v?? wrote:

I've got experience with gd but I remember struggling with unicode and
antialiasing and there's been no new version since 2007.
I'm wondering if anything more modern is around.

Imager does many of the same things as GD but more niftily.

R


Re: Server side chart/graph library?

2011-01-06 Thread Matt Lawrence

Roger Burton West wrote:

On Thu, Jan 06, 2011 at 11:54:39AM +, J??r??me Et??v?? wrote:

  


Unicode woes abound :-/


I've got experience with gd but I remember struggling with unicode and
antialiasing and there's been no new version since 2007.
I'm wondering if anything more modern is around.



Imager does many of the same things as GD but more niftily.
  


There's also Image::Imlib2.

I think when I was weighing those two up a few years ago I ended up 
going with Imager, but I can't now remember why.


Matt



Re: Server side chart/graph library?

2011-01-06 Thread Christopher Jones

On 6 Jan 2011, at 12:02, Roger Burton West wrote:


On Thu, Jan 06, 2011 at 11:54:39AM +, J??r??me Et??v?? wrote:

I've got experience with gd but I remember struggling with unicode  
and

antialiasing and there's been no new version since 2007.
I'm wondering if anything more modern is around.


Imager does many of the same things as GD but more niftily.

R


I used to quite like GD - but now I've just read the  
Imager::Cookbook.



Chris.




Re: Server side chart/graph library?

2011-01-06 Thread Nigel Metheringham
I'm a bit confused

GD (and all the others mentioned) are a bit low level for charting/graphing.

I've used Chart (which builds on top of GD) in the past, but have not
played with this stuff for a few years.

However could the OP confirm if he is after a charting solution, or 
something that is lower level image manipulation.

Nigel.
--
[ Nigel Metheringham nigel.methering...@intechnology.com ]
[ - Comments in this message are my own and not ITO opinion/policy - ]






Re: Server side chart/graph library?

2011-01-06 Thread Jérôme Etévé
Hi,

Yep, charting is what I need (as I don't really feel rolling my own
charting lib on top of any low level one :) ).

J.

On 6 January 2011 12:33, Nigel Metheringham
nigel.methering...@dev.intechnology.co.uk wrote:
 I'm a bit confused

 GD (and all the others mentioned) are a bit low level for charting/graphing.

 I've used Chart (which builds on top of GD) in the past, but have not
 played with this stuff for a few years.

 However could the OP confirm if he is after a charting solution, or
 something that is lower level image manipulation.

        Nigel.
 --
 [ Nigel Metheringham             nigel.methering...@intechnology.com ]
 [ - Comments in this message are my own and not ITO opinion/policy - ]








-- 
Jerome Eteve.

http://libsquare.net



Re: Server side chart/graph library?

2011-01-06 Thread Jason Clifford
On Thu, 2011-01-06 at 13:10 +, Jérôme Etévé wrote:
 Yep, charting is what I need (as I don't really feel rolling my own
 charting lib on top of any low level one :) ).

I find GD::Graph works well for me.



Re: Server side chart/graph library?

2011-01-06 Thread Leo Lapworth
On 6 January 2011 13:33, Jason Clifford ja...@ukfsn.org wrote:

 On Thu, 2011-01-06 at 13:10 +, Jérôme Etévé wrote:
  Yep, charting is what I need (as I don't really feel rolling my own
  charting lib on top of any low level one :) ).


Not sure exactly what your after.. but...

SVG::TT::Graph produces SVG files (
http://leo.cuckoo.org/projects/SVG-TT-Graph/ - examples),
you can then use http://xmlgraphics.apache.org/batik/ to convert to .png/pdf
etc if you like.

Or use Google's Graph API: http://code.google.com/apis/chart/

HTH

Leo


Re: Server side chart/graph library?

2011-01-06 Thread David Precious
On Thursday 06 January 2011 13:45:12 Leo Lapworth wrote: 
 Or use Google's Graph API: http://code.google.com/apis/chart/

This, via URI::GoogleChart, can make things dead simple, e.g.:

  use URI::GoogleChart;
  my $chart_uri = URI::GoogleChart-new(lines, 300, 100,
 data = [45, 80, 55, 68],
  );
  print qq[img src=$chart_uri ... /];

Flot (http://code.google.com/p/flot/) is a quite nice Javascript solution, if 
you're happy to shove data to the client and let it handle rendering the 
graph.

For graphs actually generated on the server as an image and sent to the 
client, I've used GD::Graph in the past, and it's done the trick.

Cheers

Dave P

-- 
David Precious dav...@preshweb.co.uk
http://blog.preshweb.co.uk/www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedinwww.preshweb.co.uk/facebook
www.preshweb.co.uk/identicawww.lyricsbadger.co.uk

  Programming is like sex. One mistake and you have to support 
  it for the rest of your life. (Michael Sinz)