|
|

 |

Data Graphs
Data Graphs are, as the name implies, visual representation of numeric data. You are probably already familiar with pie charts, line graphs and bar charts for giving quick and easily understandable statistical information to the viewer. Until I have enough different graphing functions and can bundle a class together, they will simply be distro'ed as procedural functions. If a graph image (or title) is clickable, then that graphing style has a downloadable function.
All graphing functions use GD libraries version 2 and above.
Note: My next 'on the agenda' task is compiling a class distribution of the DataGraphs which will involve slightly different calls and a better anti-aliasing algorythm. Feel free to use the single function distros for a while and upgrade to the class later on.
|
Pie Chart
|
I decided the current batch of pie chart functions available on the web were pretty grim looking, so ran up my own function. Passed variables are used to control all aspects of the displayed graph, including colours (background and segments), width, height, anti-alias (turned off in sample), title percents and save/output. |
Doughnut Chart
|
A method of depicting numeric data using a similar proportional segment approach as used in pie charts. This function is quite resource heavy and should never be used for on-the-fly chart generation. Passed variables are used to control all aspects of the displayed graph, including colours (background and segments), width, height, anti-alias (turned off in sample), title percents and save/output. |
Also on the agenda is a tubular line graph and a seperated segment pie chart. Will undoubtedly run up a common or garden bar chart to complete the set.
|
|