PHPGraphLib Graphing Library

Overview

PHPGraphLib is an open source lightweight PHP-based graphing library that creates slick PHP graphs for incorporation into a website or application.

phpgraphlib_example_graph: phpgraphlib_example_graph

PHPGraphLib was originally written in 2006-7 to facilitate generation of Graphs on an internal application server. PHPGraphLib is a PHP 4.3+ friendly object-oriented class that has powerful customization features, allowing you to generate the perfect bar, line, stacked bar, or pie graph for any application. Used with dynamic data, PHPGraphLib allows easy visual interpretation of sophisticated data sets. Simply feed PHPGraphLib an array of data points, and it will generate a .png chart of your data.

If no customizations are made, PHPGraphLib adjusts the scale and axis of the graph to fit any data, including large numbers, decimal numbers, and negative numbers. PHPGraphlib currently supports up to 5 datasets on one graph or chart.

To start using PHPGraphLib, download a copy from GitHub and then read the documentation pages. For more examples of what PHPGraphLib can do, visit the examples page!

PHP Line Chart Example PHP Multiple Dataset Chart Example PHP Pie Chart Example

Remote API

Advanced users can now use the PHPGraphLib Remote API instead of downloading the PHPGraphLib Library. Create graphs remotely for use on your website or application and load them into your application or web site dynamically. Any programming programming language can be used!

Personal and Commercial Usage

PHPGraphLib was officially open sourced under the MIT license in 2013. It is free to use for both personal and commercial use.