How to create a jpeg bar chart with php

This is a discussion on How to create a jpeg bar chart with php within the PHP Language forums, part of the PHP Programming Forums category; Please let me know the easiest method to create a JPEG/GIF bar chart from PHP. I have found solutions ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2006
twins
 
Posts: n/a
Default 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.

Reply With Quote
  #2 (permalink)  
Old 01-09-2006
twins
 
Posts: n/a
Default Re: How to create a jpeg bar chart with php

I need to know how to create stacked bar charts.
as shown in
http://www.visualmining.com/products...FQNsEQodblGv_w
"Basic Stacked Bar Graph"

Reply With Quote
  #3 (permalink)  
Old 01-10-2006
Juha Suni
 
Posts: n/a
Default Re: How to create a jpeg bar chart with php

"twins" <rohanroshan@gmail.com> kirjoitti
viestissä:1136807024.317904.47670@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


Reply With Quote
  #4 (permalink)  
Old 01-10-2006
Richard Brooks
 
Posts: n/a
Default Re: How to create a jpeg bar chart with php

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.
Reply With Quote
  #5 (permalink)  
Old 01-10-2006
David Haynes
 
Posts: n/a
Default Re: How to create a jpeg bar chart with php

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-

Reply With Quote
  #6 (permalink)  
Old 01-11-2006
NC
 
Posts: n/a
Default Re: How to create a jpeg bar chart with php

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

Reply With Quote
  #7 (permalink)  
Old 01-11-2006
Richard Brooks
 
Posts: n/a
Default Re: How to create a jpeg bar chart with php

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.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0