Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2003, 10:17 PM
Authorized User
 
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default GD Library

i have just installed PHP Version 4.3.2. i have to built a Sales Executive Information System using PHP and MySQL. So, i need graphs and charts. Do i need to install JPgraph in order to generate graph. How to change from one graph to another just from a button click? Such as from bar graph to pie chart.
 
Old October 22nd, 2003, 10:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, JPGraph is a popular, well documented graphing library for PHP and it uses the GD extension functions in PHP. You don't NEED it to create graphs, but I'd recommend using it -- it's pretty complicated to create a new graphing library from scratch, and why reinvent the wheel when you've got a really nice one already available?

If you are going to use a button to change between graph styles, you can have that button be a form submit button that tells the receiving PHP script what kind of graph to generate.


Take care,

Nik
http://www.bigaction.org/
 
Old October 22nd, 2003, 08:36 PM
Authorized User
 
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! But i were to install JPGraph, is there any changes that i need to do to the configuration file?






Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP with GD anyone? cutesneakers PHP How-To 0 January 15th, 2005 12:24 AM
thumbnails without gd library? cutesneakers PHP How-To 1 January 14th, 2005 05:34 AM
About GD mani_he Beginning PHP 2 August 26th, 2004 08:38 PM
Gd Library And Tm char.. Alekc Pro PHP 0 June 13th, 2004 05:40 AM
Image quality in GD Library ss2003 Beginning PHP 1 February 14th, 2004 06:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.