php jpgraph实用有关问题

WBOY
Release: 2016-06-13 11:47:21
Original
804 people have browsed it

php jpgraph实用问题
想用 jpgraph画统计图,从网上(包括官网)下载了jpgraph的压缩包,解压后发现居然都没有src文件夹有的有src文件里面也是空的。想请问下这个是为什么?没有源文件还怎么用呢?
------解决方案--------------------
1.下载jpgraph   http://www.aditus.nu/jpgraph/
  有php4.x 版和 php5.x 版 我下载的是php5.x版
2 .整理 :
   jpgraph/src
   下边的几个实例文件分别在 jpgraph/ 下
3. 配置:
   因为我要用到中文,所以要针对中文做些修改.
    jpgraph/src/jpg-config.inc.php 配置文件
//字体文件,它会自己找windows 或 linux系统中找 fonts目录 也可以自己指定位置    DEFINE('CHINESE_TTF_FONT','bkai00mp.ttf'); 
jpgraph/src/jpgraph.php
  替换 $font_family=FF_FONT1 为 $font_family=FF_SIMSUN

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!