graph chart

Pie Chart - Demos & Examples

[ Pie Chart Home ] [ Buy Now ] [ Download Trial ] [ Documentation ]

Data from Databases Pie Chart Demo

Method Outline
Here the chart is set to acquire the data from a database at page view time. This is done via a server side interface script DatabaseScript.php

Settings Summary

  • Data acquired from a PHP script DatabaseScript.php
  • Properties acquired from a PHP script PieConfigScript.php
  • 3D Graphing Mode set
  • 3D angle set to 40 degrees
  • 3 Pies defined to display sales for 2 products plus a combined pie.
  • Segment Labels turned off and the legend turned on
  • Segment seperation utilised for the 2nd pie
Next Demo >>

How the Chart was created.
The above chart was inserted into the page with the HTML Code contained in the file,
applet-databases-pie-chart.txt (click to view).

The chart properties are read from the file,
PieConfigScript.php (click to view)

The chart data is read from the file,
DatabaseScript.php (click to view)

Further Information
Obtaining the data from server scripts provides many possibilities. See the following Tutorials:-

Dynamic Page

Script Interface

For a full explanation of each parameter see the
"Configuration Options" section of the Documentation.

<< back to Examples Index

<< back to Getting Started

[ Pie Chart Home ] [ Buy Now ] [ Download Trial ] [ Documentation ]


Try Before
You Buy

Download free trial
(click >> )

Getting Started




Common Problems


Pie Chart Home