Pie chart | function php to make pie chart function
Author: Qdlover Released Date: September 15, 2000 reading: 14
--------------------------------------------------------------------------------
Introduce myself again, hehe
I am a novice, when learning PHP is purely to cope with leadership oh, let us do a statistical map, I was learning ASP, suddenly diverted very not adapt, but the PHP function is really very powerful ah, oh, I can not leave him, this is not, pie chart, column chart are all done, but there are many problems I will not, but also hope that we have more advice And said a lot of crap, I thought it was a letter.
My contact method is:
Email:qingdaohb@yeah.net
Http://qdlover.yeah.net
The boss urged, no way, pie chart function out of the oven, everyone rob Ah
########
Bimage.php3
########
?
/*
Function description
$chartdata: Data, is an array element
$chartfont: Font Size
$chartdiameter: Determine the size of the cake (to see you hungry, hehe)
$chartlabel: Title, also an array element
$colorslice: array of colors, such as $tmp=array255,255,255); $colorslic =array ($tmp);
$colorborder: Border color, array
$colortext: text color, array
$colorbody: Background color, array
$file: Output Picture file name * *
function Bimage ($chartdata,
$chartfont,
$chartdiameter,
$chartlabel,
$colorslice,
$colorbody,
$colorborder,
$colortext,
$file
)
{
$chartdiameter = 150;
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.