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

PHPBuilder.com:
More about PEAR's Image_Graph
Jun 13, 2006 @ 19:54:41

In a follow-up to their previous look at the Image_Graph package from PEAR, PHPBuilder.com continues the series with part two, a focus on a bit deeper look into the functionality the package provides.

I've fallen in love with PEAR's Image_Graph package. More than once I've come up against a requirement, and then found that the developers have implemented a solution in quite an elegant way. They'd be the first to admit there's still lots to do - the package is after all still an alpha release. But it's achieved a lot, so I can't resist taking it on a second date.

They cover the use of background images (and transparency), creating a stacked area chart, combining two graphs each having a different axis, and switching the axis direction. Each example is provided with an explaination, code to make it happen, and a screenshot of the end result.

tagged:

Link:


Trending Topics: