In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces you how to use PHP chart class JpGraph to draw dazzling charts, the content is very detailed, interested friends can refer to, hope to be helpful to you.
In PHP, there are many functions about image processing, such as the PHP chart class JpGraph that we are going to introduce to you in a few days, which is a class that helps us deal with charts.
In the past, when drawing with PHP, we must master the complex and abstract drawing function, or with the help of some classes of column chart and pie chart downloaded from the Internet. There is no unified chart class to achieve rapid chart development.
Now we have a new choice: the PHP chart class JpGraph. A class library that specializes in providing charts. It makes drawing a very simple thing, you just need to extract the relevant data from the database, define the title, chart type, and then leave the matter to JpGraph, as long as you master a few JpGraph built-in functions, you can draw a very dazzling chart!
PHP chart class JpGraph installation method:
1. First, you need to download the http://www.aditus.nu/jpgraph/ version of *.
2. Make sure your PHP version is 4.04 (4.1.1) and supports the GD library. You must make sure that the GD library is working properly, which can be determined by running phpinfo () to see if the information in the GD library exists. At the same time, it is required that the version of the GD library should be 2.0, not 1.0.
3. Unpack the downloaded JpGraph package to any folder.
4. Set up jpgraph.php (the main configuration file of jpgraph). Set the cache (cache) folder and TTF (font) folder of jpgraph.
The Linux system is changed to:
DEFINE ("CACHE_DIR", "/ tmp/jpgraph_cache/");'
DEFINE ("TTF_DIR", "/ usr/X11R6/lib/X11/fonts/truetype/")
The Windows system is changed to:
DEFINE ("CACHE_DIR", "c:/apache/htdocs/ jpgraph_cache/");'
DEFINE ("TTF_DIR", "c:/windows/fonts")
PHP Chart Class JpGraph considerations:
(1) the cache (cache) folder path can be defined by yourself, while the TTF (font) folder must be% system%/Fonts.
(2) make sure that PHP has write permission to the cache (cache) folder.
On how to use PHP chart class JpGraph to draw a dazzling chart to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.