Gets the value of the x,y point on the ellipse with the Ellipse Heart as (0,0)
function Pie_point ($deg, $va, $VB) {
$x = cos (DEG2ARC ($deg)) * $VA;
$y = sin (Deg2arc ($deg)) * $VB;
Return (Array ($x, $y));
}
3D Pie Chart Class
Class pie3d{
var $a; Oval Long Half axis
var $b; Elliptic Short Half axis
var $DataArray; Each sector of the data
var $ColorArray; The color of each pie is required to be written in hexadecimal but not preceded by 0x
For edges and shadows for black
* * To this script has already had a picture
* * Now need to send it to the browser, the important thing is to send the hair to the browser, let it know is a GIF file. Otherwise, you can only see a bunch of weird gibberish.
*/
Output generated pictures
Header ("Content-type:image/gif");
Imagegif ($image);
Imagedestroy ($image);
}//end Drawpie ()
}//end class
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.