Hi all,
I need to create a bar graph using php, the values of x-axis and y-axis are dynamic coming from database, Am trying my best to do it but finding it difficult. Has anyone done this or is there php library files for doing this.
Thanks,
Shakeeb
Creating bar graph using PHP (dynamic values)
Started by shakeeb.u@briskon.com, Mar 02 2010 06:34 AM
3 replies to this topic
#1
Posted 02 March 2010 - 06:34 AM
|
|
|
#2
Posted 02 March 2010 - 11:48 AM
You'd simply create the image and plot the points yourself, or draw the image bring it in and draw the points.
For a bar graph... create a blank image, define a few colors, draw some rectangles based on your dynamic values output the image.
PHP has helpful examples.
PHP: imagefilledrectangle - Manual
Enjoy!
For a bar graph... create a blank image, define a few colors, draw some rectangles based on your dynamic values output the image.
PHP has helpful examples.
PHP: imagefilledrectangle - Manual
Enjoy!
#3
Posted 02 March 2010 - 09:08 PM
BlaineSch said:
You'd simply create the image and plot the points yourself, or draw the image bring it in and draw the points.
For a bar graph... create a blank image, define a few colors, draw some rectangles based on your dynamic values output the image.
PHP has helpful examples.
PHP: imagefilledrectangle - Manual
Enjoy!
For a bar graph... create a blank image, define a few colors, draw some rectangles based on your dynamic values output the image.
PHP has helpful examples.
PHP: imagefilledrectangle - Manual
Enjoy!
Thank you!
#4
Posted 04 March 2010 - 03:55 PM
I use JavaScript and CSS for all my graphs. I've also used Google Charts.


Sign In
Create Account

Back to top










