I recieved some comments about this class and some members told me they cannot see the chart in their browsers. Some browsers cannot get the header of the page automatically so I think it is better to add the following line to piechart.php second and after