---------------------------------------------------
PLChart - PHP Light Chart - make charts easy in PHP
---------------------------------------------------
Tutorial:

You only need to use 6 functions to make the chart.

1. setbgcolor(int red, int green, int blue)
   This function configs the background color of the chart, each variable is between 0 to 255.

2. setchartdata(string type, int d3d, int width, int height, int quality, array data, string savefile)
   The type now supports "pie", "column", "groupcolumn", "line" and "radar" in PLChart v0.060818.
   D3d declares whether the chart is display in 3D mode or not. Set 1 to open 3D, set 0 to close. If the type is set to "line", 1 will set to show multi-line chart and 0 will set to show single-line chart. And if the type is "radar", it won't be useful.
   Width is the pixels of the image's width.
   Height is the pixels of the image's height.
   Quality is the quality of the output jpeg image file, it is between 0 - 100. 0 is set to least clear but get the smallest file size.
   Data is an array with UTF-8 charset and each charts supports different arrays.
   Savefile is the file you want to save the chart to your harddisk.

3. settitle(string tstring, float tfontsize, float tangle, int tposx, int tposy, string tfontfile, int tfred, int tfgreen, int tfblue)
   Please see the imagettftext() function in the PHP manual and the last 3 variables is the RGB color of the title fonts.

4. setdesc(int dposx, int dposy, int dwidth, int dheight, int dmargin, int dsize, int dangle, string dfontfile, int dfred, int dfgreen, int dfblue)
   Dposx and dposy is the top-left point position of the description field.
   The dwidth and dheight is the width and the height (pixel) of the description field.
   Dmargin is the margin between the fonts and the border of the description field.
   The other variables are also the same in the imagettftext function.

5. setgraphics(int gstartx, int gstarty, int gwidth, int gheight, int gmargin, float shadow)
   Gstartx and gstarty is the top-left position of the graphisc. 
   The gwidth and gheight is the width and the height (pixel) of the graphics field.
   Gmargin is the margin between the graphisc and the border of the graphics field.
   The shadow has different meaning in different chart type and different d3d value. In 3d pie and column charts, it means the height percent of shadow as the height of the pie or the width of the column. In line charts it means the line thickness percent as the unit y fields. And it is not valid in radar chart. 

6. outputchart()
   Use this function in the end to flush the chart jpg file.