What is JpGraph?JpGraph is a Object-Oriented Graph creating library for PHP >= 4.3.1 The library is completely written in PHP and ready to be used in any PHP scripts (both CGI/APXS/CLI versions of PHP are supported).
The library can be used to create numerous types of graphs either on-line or written to a file. JpGraph makes it easy to draw both "quick and dirty" graphs with a minimum of code as well as complex graphs which requires a very fine grained control. The library assigns context sensitive default values for most of the parameters which minimizes the learning curve. The
features are there when you need them - not as an obstacle to overcome!
Figure 1 : A few (thumbnail) examples of graphs created with the library.
A live example on how graphs can be generated can be found in our
Feature and defects statistics that is generated directly from our issue
tracker database. Features of JpGraphThe following is a shortlist of available features within the library.
Further information about the features by following the links below.
- Web-friendly, average image size for a 300*200 image is around 2K and images are seldomly bigger than 4-5K
- Support for both GD1 and GD2 The library will autodetect which library is installed.
- Automatic generation of client side image maps to make it possible to generate drill-down graphs.
- Advanced interpolation with cubic splines to get smooth curves from just a few data points.
- Supports several plot types,spider-plots, pie-charts (both 2d and 3d) , scatter-plots, line-plots, filled line-plots, accumulated line-plots, bar plots, accumulated bar plots, grouped bar plots, error plots, line error plots, box plots, stock plots
|
- Support for alpha blending
- Has over 200+ built in Country flags
- Supports advanced Gantt-charts (ex1, ex2)
- Flexible scales, supports integer, linear, logarithmic, text (counting) scales and any combinatino thereof on x/y axis
- Supports multiple Y-axes
- Support various layout with a background image behind the plot
- More than 400 named colors
- Extensive documentation with both a > 150 pages tutorial and an extensive class reference.
- Supports internal caching (with timeout) of generated graphs to lessen burden of a HTTP server.
- ... (and many, many more)
|
Features of Jpgraph Pro-VersionIn addition to all the functionality of the standard version the Pro-Version in addition contains the following features:
- Many linear and two-dimensional barcodes, UPC, EAN, CODE-128, Code-11, Code-25, PDF-417, ...
(more)
- Windrose module ...
(more)
- Odometer/Tachometer module ...
(more)
- Support for the creation of Excel-like tables ...
(more)
|
There are also sample applications where You can create Your own barcodes directly on-line. Follow the link below to find out more about the pro-version and how to get it JpGraph 1.x (PHP4) End of Life AnnouncementAs of 31 Dec 2007 the 1.x series for PHP4 will no longer get any feature upgrades. All
active development will move over to JpGraph 2.x series for PHP5.
The 1.x series was first released 15 Dec 2000, almost exactly seven years ago and it has had roughly
a staggering 1,800,000 downloads. It was then a small
library designed for PHP 3.x. which at that time was a little known script language.
The core design and architecture has stood the test of time and to this day remains the same.
However, the requirement to keep backward compatibility and maintain two branches also reduced the bandwidth
for feature growth and re-design. There are parts of JpGraph that would significantly benefit from
making better use of the new features in PHP5 (and the upcoming PHP6), the error handling being one.
Also the ability to have a proper OO support in the language will help achieve a cleaner library.
So from now on we will focus on a gently step by step rewrite of JpGraph 2.x to make better use of the
mechanisms available in PHP5/6.
|