Page 1 of 1

creating graph in PHP

Posted: Sun Sep 21, 2008 5:52 am
by zplits
Hi everyone, good day. Does anyone know how to create a graph or chart in php?
please help me

Re: creating graph in PHP

Posted: Sun Sep 21, 2008 6:02 am
by onion2k
zplits wrote:Hi everyone, good day. Does anyone know how to create a graph or chart in php?
I can think of lots of ways of going it...

Create an image using GD ... JPGraph is a good library for that.
Create an image using Flash ... Something like http://teethgrinder.co.uk/open-flash-chart-2/ is a pretty good option.
Create an Canvas chart with Javascript ... http://code.google.com/p/flot/ is a good option if you use jQuery.
Create a graph using CSS or tables ... very easy but there aren't many libraries around.

It really depends on your data and what sort of graph you need to create.

Re: creating graph in PHP

Posted: Sun Sep 21, 2008 6:07 am
by zplits
Thanks sir onion2k, what will be the easiest way to create graphs?
It really depends on your data and what sort of graph you need to create.
the graph that i'll be creating would be, bar, pie and line graphs. And the data that i want to be displayed in the graph are "Total Sales" and "Total Expense".

Thanks for helping me.