生成统计图类pchart文档
时间:2010-05-11 来源:xhq6632
Documentation
This documentation has been last updated on 06/18/2008.
pChart - a chart drawing library
Thank you for using pChart, we hope that you'll find the answer to your questions in this documentation. If not, feel free to use the dedicated sourceforge forum and tracker. Drawing a chart can be cut in 3 parts : First, get access to the data and prepare it to be graphed ( you can use the pData class to help ). Second, prepare the graph design : rounded corners, freaky background, drawing area and then draw the chart! Last step, put some labels, title and legends. Your chart can now be saved in a web server folder or sent directly to the client browser.
Using the library
This class can be invoked for realtime picture drawing or cron/scheduled tasks. Rendering a graph is CPU consuming, we recomment that all static graphs ( or with a renewal interval of more than 10 minutes ) should be computed from a cron job, this also apply to web sites serving a lot of page views.
This documentation has been last updated on 06/18/2008.
pChart - a chart drawing library
Thank you for using pChart, we hope that you'll find the answer to your questions in this documentation. If not, feel free to use the dedicated sourceforge forum and tracker. Drawing a chart can be cut in 3 parts : First, get access to the data and prepare it to be graphed ( you can use the pData class to help ). Second, prepare the graph design : rounded corners, freaky background, drawing area and then draw the chart! Last step, put some labels, title and legends. Your chart can now be saved in a web server folder or sent directly to the client browser.
Using the library
This class can be invoked for realtime picture drawing or cron/scheduled tasks. Rendering a graph is CPU consuming, we recomment that all static graphs ( or with a renewal interval of more than 10 minutes ) should be computed from a cron job, this also apply to web sites serving a lot of page views.
pChart is using the GD library to create pictures. You must compile the GD library with the freetype extension when installing PHP on a linux server. On windows operating system you must add the GD extension in your php.ini file. GD support is a mandatory prerequisite and cannot be overriden. You can use the following tutorial if you don't know how to install it on a linux server. |