Logo
 

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!
 
Example-thumb-images
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 JpGraph

The 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-Version

In 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 Announcement

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

 

Latest Pro-release
PHP4: v1.26p
Released on the 14 June 2008.

PHP5: v2.3.4p
Released on the 12 July 2008

Shade
ShadeShadeShade

Latest Free-release
PHP4: v1.26
Released on the 15 June 2008.

PHP5: v2.3.3
Released on the 14 June 2008

Development snapshots
Daily development snapshots (provided "as is")

Shade
ShadeShadeShade

Latest News
6 Sep: Datamatrix postscript
The upcoming next release of the pro-version will add a postscript backend for the datamatrix barcode (both for 1.x and 2.x). This now means that all 1D and 2D barcodes supports postscript output (both PS and EPS).

4 Sep: QR Barcode
In the next release of the pro-version we will include a generator for the popular 2-Dimensional QR barcode. We estimate that the next pro-release will be made in November and will include this additional barcode, hence further increasing the value of the pro version.

17 June: New HowTo
This describes how to create accumulated line plots with specified labels.

15 June: JpGraph 1.26
Fixes problem with small slices for Pie. Probably the very last 1.x release since it has reached its end of life

9 Mar: JpGraph 1.22.1
A few new small feature and some low prio defect fixes.

7 Dec: JpGraph 2.3
Both new features as well as defect fixes

6 Dec: JpGraph 1.x EOL
After seven long years JpGraph 1.x series has reached its End Of Life. This also coincides with the offical EOL for PHP4. After 1 Dec 2007 all development will be concentrated to JpGraph 2.x branch. This will allow us to make better use of the new mechanism available in PHP5 (and PHP6)

Shade
ShadeShadeShade

On popular request - LED's
LED's
LED Digits After the six:th feature request to support the creation of LED-like digits we couldn't resist any longer. In the upcoming v1.21 (or in the snapshots already) we have added a small module to create 4x7 LED like digits and the letters "A" to "L". The module supports different colored (red, green, yellow, blue, gray) LED's and sizes as well as supersampling to enhance image quality. LED Digits
One possible "real" use of this would be to use them as signup "Captcha's" to make it more difficult for automatic signup and postings.

Shade
ShadeShadeShade

Subscribe to RSS Feed
RSS Stay updated..
Subscribing to our RSS feed is an easy way to make sure that you don't miss new releases and technical information regarding JpGraph. RSS: http://www.aditus.nu/jpgraph/news.rss

Shade
ShadeShadeShade

 

Valid (X)HTMLValid CSSDriven by PHPRSS Feed
Text & Images © Aditus Consulting 2000-2007