Introduction to Jpgraph class Library ntgraph graph download Pyqtgrap

Source: Internet
Author: User
the Jpgraph class library is a class library that can be applied to the drawing of graphics images above PHP4.3.1, which is written entirely based on the GD2 function library. the Jpgraph class Library provides a variety of methods for creating various types of charts, including coordinate charts, histograms, pie charts, and more. Use The Jpgraph class library makes it easy to write complex statistical diagrams, greatly improving developer productivity and being widely used in today's PHP projects.

Installation of Jpgraph

before installing Jpgraph, you first need to download the class library's compressed package,http://jpgraph.net/download/

If you have already downloaded the jpgraph package, you can follow the steps below to install it.

(1) Unzip all the files under the package into a folder, for example: D:\wampserver\www

(2) Open the installation directory of PHP, edit the php.ini file and modify the include_path parameters, and then add the folder name, such as include_path = ".;D: \ wampserver\www\jpgraph-3.5 "

(3) Restart Apache server to take effect

Note: Jpgraph requires the support of GD library. If the user wants the Jpgraph class library to be valid only for the current site, simply copy all the files in the SRC folder under the Jpgraph compressed package to the same directory as the Web site, and invoke the specified file under the SRC folder when used. These will be explained in detail later in this section.

Configuration of the Jpgraph

Jpgraph provides a file jpg-config.inc.php dedicated to configuring the Jpgraph class library . You can implement jpgraph configuration by modifying the configuration file before you use it .

The configuration jpg-config.inc.php file contains the following two items

(1) Support for Chinese configuration

the Chinese standard fonts supported by Jpgraph can be implemented by modifying the Chinese_ttf_font settings, as follows:

define (' Chinese_ttf_font ', ' Bkai00mp.ttf ');

Note: The statement that configures the font in the new version the jpgraph_ttf.inc.php file.

(2) Default picture format configuration

sets the format of the default generated picture based on the image formats supported in the current PHP environment. Jpgraph default image format configuration by modifying define (' Default_gformat ', ' auto '); Auto indicates that Jpgraph will retrieve the system-supported picture formats sequentially in PNG, GIF, and JPEG order.


The above describes the Jpgraph class library introduction, including the graph,jpg aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.