This class is meant to generate bar graphs defined either programatically calling the class functions or using definition file to specify the graph characteristics.
The graph definitions file structure is very simple and so it is probably a better way to create graphics on the fly.
It supports axis background or border color, title text and color, graph background color, bars background and border colors, padding distances, etc.. Transparent background and transparency levels for the entire image are also supported.
The bar graph images are generated in true color in PNG format.
Class to draw line, point, area, and bar graphs.
Can use left and/or right hand y axis for text. Positive and negative values accepted.
X axis can be numeric, with zero axis support.
Refer to examples, as well as source code, for illustration of use.
Requires GD and TTF support. Tested on PHP4.0.4pl1.
This class creates a PNG image bar graph for inclusion in HTML pages.
The graph can display one or more data sets in user defined colors. The font size, font color background color, spacing between sets of bars, labels, and y-axis tick marks are all set by the user.
To use the class you first need to collect some information, such as the data, labels and the image dimensions. While the thickness and height of the bars will adjust to fit your image, the text will not.
After creating the image you can set many of the features.