PHP Graphing LibraryPHPGraphLib

Lightweight PHP Graphing Library

Downloads

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. Also, you must agree to the usage policy before downloading PHPGraphLib.

Latest Version

Bullet PHPGraphLib 2.02 (.zip) - 04/14/2008
- phpgraphlib.php - 43k
- phpgraphlib_pie.php - 14k

Changes from 2.01 to 2.02:

  • Fixed another legend color related bug.

Prior Versions

Bullet PHPGraphLib 2.01 (.zip) - 01/14/2008
- phpgraphlib.php - 43k
- phpgraphlib_pie.php - 14k

Changes from 2.0 to 2.01:

  • Fix for a legend color related bug when using one dataset.

Bullet PHPGraphLib 2.0 (.zip) - 11/19/2007
- phpgraphlib.php - 43k
- phpgraphlib_pie.php - 14k

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();

Bullet PHPGraphLib 1.19 (.zip) - 11/14/2007
- phpgraphlib.php - 30k
- phpgraphlib_pie.php - 15k

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.

Bullet PHPGraphLib 1.16 (.zip) - 10/12/2007
- phpgraphlib.php - 29k
- phpgraphlib_pie.php - 15k

Changes from 1.15 to 1.16:

  • Bugfix in phpgraphlib_pie.php - possible php error scenario fixed.

Bullet PHPGraphLib 1.15 (.zip) - 08/31/2007
- phpgraphlib.php - 29k
- phpgraphlib_pie.php - 15k

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.

Bullet 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.

Bullet 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.

Bullet 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.

Bullet 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.