1) XAMPP . See this post if you don’t know how to install XAMPP
2) JpGraph download JpGraph at this website http://jpgraph.net/download/index.php
-Unzip the jpgraph and place it in your xampp working folder. Example: C:\xampp\htdocs\example
- Create a .php file and for example graph.php and include “require_once('/jpgraph-3.5.0b1/src/jpgraph.php');” to make jpgraph available in your code.
- Here is example code
$ydata = array(90,80,67,87,66,71,96,53,35,73);
// Create the graph. These two calls are always required
$graph = new Graph(300,250);
$graph->xaxis->title->Set("Number of students");
// Create the linear plot
// Add the plot to the graph
// Display the graph
- Save the code and run at web browser. Before run, do not forget to Start the Apache through XAMPP Thats all!