Hi everyone, good day. Does anyone know how to create a graph or chart in php?
please help me
creating graph in PHP
Moderator: General Moderators
Re: creating graph in PHP
I can think of lots of ways of going it...zplits wrote:Hi everyone, good day. Does anyone know how to create a graph or chart in php?
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
Thanks sir onion2k, what will be the easiest way to create graphs?
Thanks for helping me.
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".It really depends on your data and what sort of graph you need to create.
Thanks for helping me.