jpgraph是php中一个非常非常强大的第三方报表工具,据说能完成一切你想要的图形…
新手初识jpgraph肯定会遇到各种各样的问题,比如乱码什么的,本案例是jpgraph3.0.7制作,也经过本人的多次实验,解决乱码问题
<?php
$datay=array(); //纵坐标数据
$datax=array(); //横坐标数据
foreach ($usernums as $key => $value){
$datay[] = $value;
$datax[] = $userids[$key];
}
require_once (‘jpgraph-3.0.7/jpgraph/jpgraph.php’);
require_once (‘jpgraph-3.0.7/jpgraph/jpgraph_bar.php’);
// Create the graph. These two calls are always required
$graph = new Graph(800,600); //图像高宽
$graph->SetScale(“textlin”);
$graph->xaxis->SetTickLabels($datax);
$graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,10);
$graph->xaxis->SetLabelAngle(30);
$graph->yaxis->scale->SetGrace(20);
$graph->xaxis->scale->SetGrace(20);
// Add a drop shadow
$graph->SetShadow();
// Adjust the margin a bit to make more room for titles
$graph->img->SetMargin(40,30,20,40);
// Create a bar pot
$bplot = new BarPlot($datay);
// Adjust fill color
$bplot->SetFillColor(‘orange’);
$bplot->value->Show();
$bplot->value->SetFont(FF_ARIAL,FS_BOLD,10);
$bplot->value->SetAngle(45);
$bplot->value->SetFormat(‘%d’);
$graph->Add($bplot);
// Setup the titles
$graph->title->Set(iconv(“UTF-8″, “gb2312″,”用户消费报表图”));
$graph->xaxis->title->Set(iconv(“UTF-8″, “gb2312″,”用户姓名”));
$graph->yaxis->title->Set(iconv(“UTF-8″, “gb2312″,”用户订单数量”));
$graph->xaxis->title->SetFont(FF_SIMSUN,FS_BOLD);
$graph->yaxis->title->SetFont(FF_SIMSUN,FS_BOLD);
$graph->title->SetFont(FF_SIMSUN,FS_BOLD);
// Display the graph
$graph->Stroke();
?>
效果图:
<img title="php报表之jpgraph效果图" height="400" alt="" src="http://www.wfuyu.com/uploadfile/phpjc/www.52blogger.com/archives/539
波比源码 » php报表之jpgraph柱状图实例
levofloxacin 500mg usa levaquin drug
dutasteride generic cheap ondansetron 8mg order ondansetron without prescription
order generic spironolactone 100mg finasteride 5mg cost cost diflucan
ampicillin online buy erythromycin 250mg price brand erythromycin 250mg
generic sildenafil 100mg tamoxifen 20mg over the counter brand robaxin
order sildenafil 100mg pill estrace online order buy estradiol 1mg online
indocin 75mg uk cefixime 200mg price trimox us
buy tadalafil 20mg online help for ed order sildenafil sale
order anastrozole 1 mg generic Viagra mail order sildenafil canada
tadalafil 10mg gГ©nГ©rique acheter 25mg viagra viagra 200mg sans ordonnance
tadalafil kaufen für männer tadalafil 5mg für männer viagra 50mg generika
ramipril cost brand ramipril 5mg azelastine oral
catapres usa buy tiotropium bromide online cheap spiriva for sale online
buspirone ca buy buspar 10mg without prescription generic ditropan 2.5mg
hytrin 1mg tablet pioglitazone 15mg usa order sulfasalazine 500 mg generic
buy isosorbide sale cost lanoxin telmisartan cheap
zoloft cheap buy zoloft 50mg for sale buy sildenafil generic
order tadalafil 5mg sale Buy no rx cialis viagra 100mg pills for men
generic cialis 5mg buy amantadine 100mg pill symmetrel oral
naltrexone generic femara 2.5mg us cost aripiprazole 20mg
buy provigil 200mg for sale buy stromectol 12mg generic ivermectin 6 mg for humans for sale
luvox order online glucotrol order online buy generic glipizide
buy accutane 20mg sale order prednisone 5mg generic buy prednisone 20mg for sale
purchase piracetam pills piracetam 800mg tablet order sildenafil without prescription
azithromycin 250mg usa order prednisolone 10mg without prescription order gabapentin 600mg sale
sporanox for sale online buy itraconazole pill order tinidazole
buy olanzapine sale valsartan 160mg us diovan 80mg sale
viagra 100mg uk lisinopril medication brand lisinopril 10mg
metoprolol 100mg uk buy lopressor generic vardenafil 10mg ca
write essay service no deposit free spins casino play casino
order priligy 30mg online order priligy 60mg online cheap cheap levothyroxine pill
buy allopurinol pill order allopurinol 100mg online cheap ezetimibe 10mg pill
methotrexate 2.5mg oral warfarin 2mg generic purchase reglan online
buy domperidone generic buy motilium without prescription order flexeril
order ozobax pill buy generic tizanidine toradol for sale online
sumatriptan 25mg ca buy imitrex online purchase avodart for sale
ranitidine price buy generic zantac 300mg celecoxib 200mg ca
simvastatin usa proscar canada finasteride 1mg ca
buy generic diflucan 100mg cheap viagra without prescription viagra 150 mg
cephalexin 500mg tablet cephalexin 250mg cost order erythromycin generic
cefuroxime online order buy bimatoprost online generic robaxin
affordable thesis writing assignment company stromectol buy uk
sildenafil professional cost estrace 1mg order lamictal generic
viagra 100mg generic cialis viagra sales buy cialis 10mg sale
furosemide buy online lasix price buy plaquenil 400mg for sale
tretinoin gel brand retin canada buy generic avana 100mg
purchase albuterol pills proventil 100 mcg cost buy ciprofloxacin generic
cheap actos 15mg cost viagra buy sildenafil pill
purchase montelukast pill viagra 50mg price viagra overnight shipping
purchase tadalafil Buy cialis without rx online casino for real cash
buy tadalafil 20mg generic generic for cialis cialis 5mg uk
ivermectin 6 mg tablets order dapsone 100 mg pills order avlosulfon 100mg without prescription
world series of poker online online casinos real money online gambling sites
order asacol 400mg for sale buy irbesartan 150mg pill irbesartan without prescription
purchase temovate generic clobetasol online buy generic cordarone 200mg
order digoxin 250mg without prescription molnunat 200mg without prescription order molnupiravir 200mg online
Nice article inspiring thanks. Hello Administ . Metropol Halı Karaca Halı Öztekin ve Selçuklu Halı Cami Halısı ve Cami Halıları Türkiye’nin En Büyük Cami Halısı Fabrikasıyız…
famotidine sale generic mirtazapine buy mirtazapine 15mg pill
doxycycline 200mg usa generic chloroquine methylprednisolone buy online
nexium 40mg cost clarithromycin cost buy lasix pills
buy provigil 100mg online modafinil usa purchase promethazine without prescription
buy clomiphene 50mg pills clomid generic prednisolone 20mg oral
order deltasone 40mg online cheap purchase amoxicillin sale buy amoxil 250mg pill
order sildenafil 100mg online cheap order propecia generic propecia 1mg cheap
purchase albuterol pills ventolin 4mg oral order generic augmentin 1000mg
купить аттестаты
водительские права
purchase promethazine online cheap order phenergan generic cialis black
oral zetia 10mg zetia generic methotrexate 10mg tablet
buy levaquin 500mg for sale urso 150mg ca purchase zyban
zyrtec ca atomoxetine canada buy sertraline 50mg generic
lexapro 10mg sale order escitalopram 10mg without prescription buy generic naltrexone
buy tadalafil 10mg buy cialis pills buy ed meds online
cialis online order cost cialis 40mg best place to buy ed pills online
ivermectin 200 mcg deltasone online buy buy isotretinoin
order modafinil 100mg without prescription buy promethazine online cheap buy prednisone 20mg
amoxil 250mg us order zithromax 500mg for sale prednisolone 5mg tablet
generic accutane order azithromycin 250mg pill purchase azithromycin online
prednisolone 20mg without prescription purchase lasix generic lasix for sale
clomid 100mg us hydroxychloroquine over the counter purchase plaquenil generic
glucophage cheap order glycomet 1000mg online order norvasc 10mg online cheap
order prinivil for sale purchase lopressor online purchase lopressor pill
how to get methotrexate without a prescription cheap methotrexate buy metoclopramide 10mg generic
orlistat generic zyloprim 100mg brand purchase allopurinol pill
order sumatriptan generic dutasteride pills buy avodart paypal
order tetracycline 250mg sale flexeril order online baclofen 25mg cost
toradol generic inderal sale inderal tablet
flomax 0.4mg generic buy aldactone sale cheap spironolactone 100mg
cymbalta buy online glucotrol price nootropil 800mg generic
betnovate 20gm price buy sporanox pills for sale buy generic itraconazole
order starlix pill generic capoten 25 mg buy atacand 8mg sale
buy bystolic no prescription clozaril 100mg cheap purchase clozaril generic
buy cheap simvastatin buy generic zocor viagra 50mg drug
buy tadalafil 40mg pills buy online cialis viagra order
buy estrace 1mg pills buy lamictal 50mg pill minipress 2mg us
trimox 250mg drug anastrozole 1 mg pill biaxin usa
order catapres 0.1mg order catapres for sale generic spiriva
order minocycline 100mg online minocin 100mg for sale order pioglitazone
buy leflunomide 20mg generic buy sildenafil 100mg generic sulfasalazine 500 mg generic
cialis overnight tadalafil cialis order tadalafil 20mg sale
order generic accutane 10mg isotretinoin 20mg ca zithromax 500mg brand
where to buy furosemide without a prescription order albuterol online buy albuterol pills
vardenafil 10mg brand buy levitra 10mg pills plaquenil medication
benicar over the counter depakote 250mg ca oral depakote 250mg
clobetasol tablet order buspirone 5mg online buy amiodarone 200mg pill