PHPGraphLib
Lightweight PHP Graphing Library
Download
PHPGraphLib is packaged in a zip file containing the main PHPGraphLib class in the phpgraphlib.php file. For setup information please visit the documentation section.
You must agree to the usage policy before downloading PHPGraphLib.
Latest Version
PHPGraphLib 2.30
(.zip) - 04/21/2010
Changes from 2.21 to 2.30:
- Added PHPGraphLibStacked extension for creating stacked bar charts.
- Added support for up to 5 data sets, instead of the default 3.
- Added support for setting colors using hex formats. Example: #FF0000.
- Added supporting code structures to allow in the future for easier additional extensions.
- Fixed bug with imagepng() that did not allow graph creation with certain php versions.
- Fixed bug with PHPGraphLibPie() that left a necessary color value unset.
- Cleaned up code and comments.
Prior Versions
PHPGraphLib 2.21
(.zip) - 12/06/2009
Changes from 2.20 to 2.21:
- Added support for formatting data as degrees and additional generic formats.
PHPGraphLib 2.20
(.zip) - 12/04/2009
Changes from 2.10 to 2.20:
- Added support for currency formatting and comma (3,123,434) formatting.
- Added support for negative values in the setRange() function.
- Added file output support of .png files to your filesystem.
PHPGraphLib 2.10(.zip) - 08/20/2009
Changes from 2.02 to 2.10:
- Fixed long-standing bug involving datasets that have all zero data.
PHPGraphLib 2.02
(.zip) - 04/14/2008
Changes from 2.01 to 2.02:
- Fixed another legend color related bug.
PHPGraphLib 2.01
(.zip) - 01/14/2008
Changes from 2.0 to 2.01:
- Fix for a legend color related bug when using one dataset.
PHPGraphLib 2.0
(.zip) - 11/19/2007
Changes from 1.19 to 2.0:
- Multiple datasets supported! Display up to three sets of data on one graph.
- New function setTitleLocation() adjusts display location of title.
- Legends can be added to all graphs, not just pie graphs. New functions setLegend(), setLegendTitle(), setLegendColor(), setLegendTextColor(), setLegendOutlineColot(), and setSwatchOutlineColor().
- Several functions modified to allow for multiple datasets including addData(), setBarColor(), setGradent(), and setLineColor();
PHPGraphLib 1.19
(.zip) - 11/14/2007
Changes from 1.16 to 1.19:
- Intermediate release before release of 1.2, which will allow for multiple data sets.
- New functions setXValuesHorizontal() and setXValuesVertical() allow for orientation of x-axis values.
- Versions 1.17 and 1.18 skipped, as they were found to contain bugs relating to the added features soon after publish.
PHPGraphLib 1.16
(.zip) - 10/12/2007
Changes from 1.15 to 1.16:
- Bugfix in phpgraphlib_pie.php - possible php error scenario fixed.
PHPGraphLib 1.15 (.zip) - 08/31/2007
Changes from 1.14 to 1.15:
- Exact same base code as 1.14, but this zip also includes the phpgraphlib_pie.php file, which can be optionally used to create pie charts using the existing framework.
PHPGraphLib 1.14 08/28/2007
PHPGraphLib 1.14 is no longer available for download. The exact same code is available in 1.15, but now it is bundled with another file, the PHPGraphLibPie class, optionally allowing pie charts to be created.
Changes from 1.13 to 1.14:
- Added a setRange() function thanks to several user requests - see main documentation for details.
- Optimized code.
- Made a version of PHPGraphLib available without code comments, possibly speeding up your server in heavily active server environments.
PHPGraphLib 1.13 (.zip) - 08/15/2007
Changes from 1.12 to 1.13:
- Added a setDataPointSize() function thanks to a user request.
- Fixed a bug with data containing all zeros.
PHPGraphLib 1.12 (.zip) - 08/11/2007
Changes from 1.11 to 1.12:
- Fixed bug that occurred when user did not call addData() function. PHPGraphLib will now display an error message in this condition.
PHPGraphLib 1.11 (.zip) - 07/25/2007
Changes from 1.1 to 1.11:
- Added setGoalLine() function that sets an individual horizontal grid line, used to highlight an important threshold or value.
- Added setGoalLineColor() function that sets the color of the goal line.
- Added setXAxisTextColor() and setYAxisTextColor() functions that allow the color of the x-axis and y-axis values to be set independently. setTextColor() still sets both the x-axis and y-axis.
- Changed default bar outline color from dark gray to black.