Help on doing filled lined graph

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
newbie_01
Forum Newbie
Posts: 1
Joined: Thu Oct 01, 2009 3:53 am

Help on doing filled lined graph

Post by newbie_01 »

Hi all,

Does anyone have an example of a PHP script that can do filled line graph?

Basically, for example, if I want to graph network traffic on a weekly basis and by the hour, my Y-axis will be network traffic 0 -100 and my X-axis will be the the hours of the day 0 - 23 in 30-minute interval and I want to plot the data as filled line graph.

The graph will obviously be overlapping each other, so I need to be able to click on Monday and the Monday graph data will be highlighted, if I click on Tuesday, the Tuesday graph data will be highlighted and so on.

Any suggestion will be very much appreciated. Thanks in advance.

BTW, the data will be coming from a CSV delimited file.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Help on doing filled lined graph

Post by pickle »

Google for PHP graphing library. jpGraph and pChart are two common ones.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply