Jump to content

PHP and MySQL Graphing options? Recommendations....


mdemetri2

Recommended Posts

Hi, I have tried a few times to look into something that will allow me to pull data from mysql database to produce charts on a site that is currently coded in PHP, but quickly loose the plot when I come across the need to install library's on the server running the site - which I have access to but would need step by step instructions on what to do. Also, I have looked into some dreamweaver plugins but not quite done what I needed. 

 

So, can anyone recommend something that is fairly straightforward to implement and then configure to create the charts??

 

Many thanks

Demetri 

Edited by mdemetri2
Link to comment
Share on other sites

You can use the GD library to create images however you want. There are a few libraries out there that provide graphing functions; Here is one:

http://pchart.sourceforge.net/

 

Or, you could generate the graph in HTML and have the client render it. Here is a tutorial on graphing using the canvas tag:

http://www.html5canvastutorials.com/labs/html5-canvas-graphing-an-equation/

Link to comment
Share on other sites

hmmm, ok taken a look at these. I think I'm leaning towards potentially using baaChart....but I have no clue how to configure it....so if I have a set data from a query (recordset in dreamweaver) how do I implement this being plotted? sorry, fairly new to all this I don't quite get the use of classes......

Link to comment
Share on other sites

You need the baaChart php file on you server so you can include it.

 

As with any dynamic image file the code needs to be in its own file (say mychart.php) and you place it on the page with an image tag

 

<img src="mychart.php" />

 

There is a tutorial in the user guide. If you get stuck PM me

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.