Posted by Richard Brooks on 01/11/06 03:34
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.
Navigation:
[Reply to this message]
|