469,926 Members | 1,492 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

How to create a jpeg bar chart with php

Please let me know the easiest method to create a JPEG/GIF bar chart
from PHP.
I have found solutions that allow creation of swf/flash charts but I
need a jpeg/jpg/gif bar chart.

Jan 9 '06 #1
6 2892
I need to know how to create stacked bar charts.
as shown in
http://www.visualmining.com/products...FQNsEQodblGv_w
"Basic Stacked Bar Graph"

Jan 9 '06 #2
"twins" <ro*********@gmail.com> kirjoitti
viestissä:11*********************@g14g2000cwa.goog legroups.com...
Please let me know the easiest method to create a JPEG/GIF bar chart
from PHP.
I have found solutions that allow creation of swf/flash charts but I
need a jpeg/jpg/gif bar chart.


GlobFX's Swiff Chart Generator is quite expensive but produces pretty much
anything you might want, including jpg:
http://www.globfx.com/products/swfchartgen/

Another popular graphing library for PHP is JpGraph, found at
http://www.aditus.nu/jpgraph/. It might be perfect for you so I suggest you
try it out.

HTH

--
Suni
Jan 10 '06 #3
twins wrote:
Please let me know the easiest method to create a JPEG/GIF bar chart
from PHP.
I have found solutions that allow creation of swf/flash charts but I
need a jpeg/jpg/gif bar chart.


As you'd have access to the height of an image even through HTMLs IMG
property, you could make each bar one colour JPEG/GIF image block and
access that using data from a database to change the height of the block.

I'd imagine the actual value would have to be the top-most location
value minus the height if you want the bottom to stay along a horizontal
line, the values growing upward.

Richard.
Jan 10 '06 #4
Richard Brooks wrote:
twins wrote:
Please let me know the easiest method to create a JPEG/GIF bar chart
from PHP.
I have found solutions that allow creation of swf/flash charts but I
need a jpeg/jpg/gif bar chart.


As you'd have access to the height of an image even through HTMLs IMG
property, you could make each bar one colour JPEG/GIF image block and
access that using data from a database to change the height of the block.

I'd imagine the actual value would have to be the top-most location
value minus the height if you want the bottom to stay along a horizontal
line, the values growing upward.

Richard.

look for jpgraph. It will do this.

-david-

Jan 10 '06 #5
NC
twins wrote:

Please let me know the easiest method to create a JPEG/GIF
bar chart from PHP.


Check out JpGraph:

http://www.aditus.nu/jpgraph/

Cheers,
NC

Jan 11 '06 #6
David Haynes wrote:
Richard Brooks wrote:
twins wrote:
Please let me know the easiest method to create a JPEG/GIF bar chart
from PHP.
I have found solutions that allow creation of swf/flash charts but I
need a jpeg/jpg/gif bar chart.

As you'd have access to the height of an image even through HTMLs IMG
property, you could make each bar one colour JPEG/GIF image block and
access that using data from a database to change the height of the block.

I'd imagine the actual value would have to be the top-most location
value minus the height if you want the bottom to stay along a
horizontal line, the values growing upward.

Richard.


look for jpgraph. It will do this.

-david-


I read that in the post I replied to but sometimes it's good to 'get
down and dirty' and learn what is going on unless the poster 'can't be
arsed!' ;-)

Richard.
Jan 11 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Greg Bryant | last post: by
reply views Thread by Don Wash | last post: by
reply views Thread by pmclinn | last post: by
11 posts views Thread by Mark B | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.