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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I need to know how to create stacked bar charts.
as shown in http://www.visualmining.com/products...FQNsEQodblGv_w "Basic Stacked Bar Graph" |
|
|||
|
"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 |
|
|||
|
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. |
|
|||
|
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- |
|
|||
|
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 |
|
|||
|
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. |