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 can be used to assign colors to graph points defined in a vertex list.
It can retrieve the coordinates of vertex points from a file or executing a MySQL database query.
Then it defines it assigns colors to vertex points establishing connections between the points from list of vertexes, so that two consecutive vertexes do not get the same color.
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.