News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
An Introduction to Graphs Using PEAR's Image_Graph Package
May 04, 2006 @ 08:08:38

There are lots of solutions out there when it comes to graphing data with PHP, mostly surrounding the GD graphics library that's included with most of the recent PHP distributions. Included in this list is the PEAR package Image_Graph, and PHPBuilder.com has created this introduction to help get you started with it.

This article looks at PEAR's Image_Graph package, which is released under the Lesser GPL. It's a package that has very little documentation, but which deserves more recognition. It's helpful to have used PEAR before, but if this is the first PEAR package you'll use, you'll probably cope just fine.

Formerly a SourceForge package known as GraPHPite, it merged with and took the name of an older PEAR Image_Graph package. The graphs, charts and plots produced by Image_Graph are highly customizable, and can be any of area, band, bar, box and whisker, candlestick, impulse, map, line, pie, radar, scatter, smoothed line and step.

There's a brief installation section to get things all set up, followed by a simple bar chart example that serves as a base for the rest of the code. They enhance it with colors (manually and via arrays), changing the font settings, changing out the type of graph rendered, and adding a heading to better define the graph's contents.

0 comments voice your opinion now!
image_graph pear class gd graphics tutorial graph image_graph pear class gd graphics tutorial graph


blog comments powered by Disqus

Similar Posts

The Bakery: Four New Articles - Load Balancing, Request Info, UUID Behavior & Upload Thumbnails

WebReference.com: Encryption Techniques for Your PHP Development

Till Klampaeckel's Blog: Cooking PHPUnit (and a chef-solo example on top)

Chris Risner: Mobile Geolocation Apps with Windows Azure Websites Part 1: The PHP Code

WebReference.com: User Personalization with PHP: The Verification Code


Community Events





Don't see your event here?
Let us know!


voicesoftheelephpant podcast opinion symfony package library composer series introduction application tool community laravel language version security framework interview install release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework