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

Builder.com.au:
Using GD Functions in PHP to Create a Bar Chart
Jul 28, 2005 @ 11:50:24

Builder.com.au has a new article today with a brief look at how to get PHP to draw a bar chart with the GD functionality (already compiled in, they don't give an install).

When an IT manager requests reports, you can practically guarantee that they'll expect to see graphical representations of figures within those reports. You could either buy a third-party reporting tool to create this graphical data, or you could use the GD image functionality within PHP. Since PHP is free and you can add the bundled GD library at no cost, it makes sense to use this as a cost-effective method for providing graphical data representations. I'll show you how to create a dynamic bar chart using PHP that you can display within a Web page.

It's a pretty simple method, just set up the parameters, call the GD functions, draw the rectangles, and output the image. Of course, they give you all the code you'll need for the little script, so getting things up and working is only a matter of your personaly coding time...

tagged:

Link:


Trending Topics: