Advanced Graph and Chart Software PHP

Data from External Scripts

The graph here is produced in a similar manner to the first example except this time we tell the graphing software to load the data from and external script. This method is very powerful and allows great scope in the production of real time graphing. An external script can be used to acquire data dynamically from a wide range of sources including databases, spreadsheets etc.


Here is the IMG tag which invokes the graphing software which dynamically creates the graph image at page load time.

Here we tell the software to load the configuration options from the file configFile.txt and the data from the file dataScript.php (code below)

Note: the URLs supplied for both the configuration and data are relative URLs. The URLs are relative to the location of the graphing software and NOT this page.

If the graph does not display then see the Troubleshooting guide for details on how to resolve the problem.


Demo Index


Troubleshooting Guide



Basic Chart Styles

Bar Graphs

Cylinder Charts

Combination Charts