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
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!
I use JavaScript and CSS for all my graphs. I've also used Google Charts.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks