The job is to flesh out two classes:
[login to view URL]
- integrate HTML from [login to view URL] to output a pie chart correctly, based on array input.
[login to view URL]
- build two pie charts
- build html output
- build html form using [login to view URL] (sample code provided)
- build insert SQL from form (sample code provided)
Also fill a page with the data:
[login to view URL]
All you have to do is format the sample data as given. Leave #### as is.
Simply copy the files to your web root and open this file to see the sample data:
[login to view URL]
All the functions are in place to load the sample data, and called by the constructor:
public function __construct()
{
echo "<h2>for a pie chart:</h2>";
$arr = $this->getCategoryData();
var_dump( $arr );
echo "<h2>for a pie chart:</h2>";
$arr = $this->getWoodtypeData();
var_dump( $arr );
echo "<h2>the main output; also drives the form:</h2>";
$arr = $this->getMiscData();
var_dump( $arr );
echo "<h2>useful for building the form:</h2>";
$arr = $this->getNamesAndLabels();
var_dump( $arr );
}