Server side chart/graph library?

David Precious davidp at preshweb.co.uk
Thu Jan 6 14:57:29 GMT 2011


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 <davidp at preshweb.co.uk>
http://blog.preshweb.co.uk/    www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
www.preshweb.co.uk/identica    www.lyricsbadger.co.uk

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


More information about the london.pm mailing list