pie chart

2D/3D Pie Chart for PHP

[ Pie Chart Home ] [ Set-Up ] [ Tutorials ] [ Documentation ] [ Buy Now ] [ Support ]

2D/3D Pie Chart for PHP

Tutorials - Fully Configured

Before following this tutorial it is essential that the graph software has been installed. If you have not yet done so then you should complete the install procedure now,
Quick Set-Up and Install »

This second tutorial builds on the first by adding all the possible parameters to the configuration file. In addition it also shows how to use the graphing software from different directories.

Step 1 - Add the <IMG> tag to your web page

Add this HTML code to your page
(replacing yourdomain.com with the actual domain of your web site and [URL FilePath] with the url of the web directory where your page resides),

<img src="http://www.yourdomain.com/jpowered/piechart/pie-chart.php?
data=[URL FilePath]/data.txt&
config=[URL FilePath]/fullconfig.txt"
width=500
height=500>

Save the web page and load it up to your web server.

 

Step 2 - Create the data and config files

From the /tutorials/ directory (of this package) copy the 2 files data.txt and fullconfig.txt to your web server.

These files should be placed in the same directory as your web page.

 

 

Notes:

The data.txt file contains the data values to be plotted. This example file contains 2 series of data each with 6 data values.

The graph can also pull data directly from databases and other sources. This is explored in a later tutorial.

This fullconfig.txt file contains all the possible parameters. For the function and options of each parameter see the following page:-

Graph Parameters »

Final Step - View the page in a browser

Open your web browser and view the page.

You should see two Pie Charts each with 6 segments.

 

Follow-Up Suggestion:

Edit the fullconfig.txt file changing some of the values.

For the function and options of each parameter see the following page:-

Graph Parameters »

 

When to use this type of implementation.

If your data is fairly static then simply supplying it via the data.txt file is a very easy way to add graphs to page(s).

However the graphing software is capable of powerful Real-Time graphing, dynamically pulling data from databases and other data sources.

In the next tutorial we shall demonstrate how to set the graph to pull the data from another PHP script.

next Tutorial »

 

 

« back to Getting Started next Tutorial »

Any Problems ?

In the vast majority of cases (over 95%) the above is all that is required. However if you experience any problems please feel free to tell us and we will be happy to assist.

Contact us here »

Please remember to include the URL of your web page.

[ Pie Chart Home ] [ Set-Up ] [ Tutorials ] [ Documentation ] [ Buy Now ] [ Support ]

How it Works »

How the graphing software works.

Quick Set-Up and Install »

step-by- step guide to add graphing for your site.

Tutorials »

Introducing many powerful features.

Licensing and Purchase Options »

Click the 'Buy & Download' button to review options.

buy and download pie chart graph for php

Documentation »

Full documentation

Help and Support »

If at any stage you require help or advice then please feel free to ask.

Contact us here »