Home > Backend Development > PHP Tutorial > php pchart显示中文的有关问题

php pchart显示中文的有关问题

WBOY
Release: 2016-06-13 12:36:53
Original
1188 people have browsed it

php pchart显示中文的问题
 $MyData = new pData();   
 $MyData->addPoints(array(25,10,25,10,25,10,25,10,25,10,25,10),"Temperature"); 
 $MyData->addPoints(array(2,4,6,4,5,3,6,4,5,8,6,1),"Pressure"); 
 $MyData->setSerieDrawable("Pressure",FALSE); 
 $MyData->setAxisName(0,"订单总金额"); 
 $MyData->addPoints(iconv_arr(array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月")),"Labels"); 
 $MyData->setSerieDescription("Labels","Months"); 
 $MyData->setAbscissa("Labels"); 

在PHP里使用了pchart,但是标签不显示中文,或显示中文乱码,怎么解决?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template