News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPHacks.com:
Creating charts with JGraph
September 18, 2006 @ 07:41:42

PHPHacks.com has posted a new tutorial about one of the more requested features when working with a dyanmic scripting languages - creating graphs. They show how to do it with the help of JPGraph, a popular PHP graphing package.

JPGraph is an Object Oriented graph library, which can help you to draw graphs. The real advantage in using JPGraph is its simplicity. Creating a graph at runtime may sound complex! But JPGraph class has been designed in such a way that they hide the complex part from the user. Few lines of coding can create amazing graphs, which you can never think of.

The first step would be to download the JPGraph include files. This can be found at (http://www.aditus.nu/jpgraph/).Extract all the contents to a folder and put it in a safe place. We will refer these libraries whenever needed.

They start off looking at some of the features JPGraph provides, from some of the most basic out to the complex (like user-specified position of axis and rotation of linear graphs). Following that, it's out to the code - the creation of a simple database to pull the statistics from and the code to make a bar graph out of it, complete with the explaination of what each line does.

0 comments voice your opinion now!
jpgraph chart graph library class simple tutorial database bar jpgraph chart graph library class simple tutorial database bar


blog comments powered by Disqus

Similar Posts

Bence Eros' Blog: Using Inheritance

Shashikant Jagtap's Blog: Adding More Sauce To Behat

SitePoint PHP Blog: Getting Started with Symfony2 Route Annotations

DevShed: Introducing SimpleXML in PHP 5

Michelangelo van Dam's Blog: Single User Zend_Service_Twitter


Community Events

Don't see your event here?
Let us know!


symfony2 api framework interview introduction extension voicesoftheelephpant laravel conference list community release opinion version podcast example performance library php7 series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework