php pchart显示中文的有关问题
程序员文章站
2024-02-17 16:18:43
...
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,但是标签不显示中文,或显示中文乱码,怎么解决?
$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,但是标签不显示中文,或显示中文乱码,怎么解决?
专题推荐
-
独孤九贱-php全栈开发教程
全栈 170W+
主讲:Peter-Zhu 轻松幽默、简短易学,非常适合PHP学习入门
-
玉女心经-web前端开发教程
入门 80W+
主讲:灭绝师太 由浅入深、明快简洁,非常适合前端学习入门
-
天龙八部-实战开发教程
实战 120W+
主讲:西门大官人 思路清晰、严谨规范,适合有一定web编程基础学习
- 最新文章
- 热门排行
上一篇: 任务配置 (Hadoop 2.2.0)
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论