473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 3147
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg Bryant | last post by:
I'm looking at adding some basic line graphs to a page. Enabled gd, and started in on pear::image_graph. Just wanting to start simple, I created a new graph, set the background color, and...
3
by: Moth | last post by:
I have a PlotPanel class that extends JPanel which I have used previously to display charts in swing guis. I now want to display a graph in a jsp page so I was going to generate the graph and then...
0
by: Don Wash | last post by:
Hi There! I'm using bulit-in CrystalReport that comes with VS.NET 2003 to create reports for use it ASP.NET. How do I configure a graph in the Report (*.rpt file) so that I can have a...
0
by: pmclinn | last post by:
The code below takes the data from the S column and grabs all the data and graphs it. The problem is this example grabs 500 cells worth of data and some of these cells = nothing. How do I rescope...
1
by: vijay | last post by:
HI ALL, How to create excel chart programatically using C#.net 2005. I have created an excel file by using Gembox.Spreadsheet component.Now i want to add excel Chart to this...
1
by: phazawhy | last post by:
we have this requirement in school that we have to create a program that will able to solve the cpu scheduling (first come first serve, 1st job done and we need it to gant chart it). please teach me...
3
by: Rambaldi | last post by:
Although i'm working on ASP.net, i think the problem i'm facing is related to my javascript function so i hope i create the thread in the right section. My goal is to create a table dynamically,...
11
by: Mark B | last post by:
I want to display a pre-designed graphical 'performance badge' on certain webpages (round, about 2cm diameter) next to a salesperson's details. I have a function,...
5
by: CoreyReynolds | last post by:
Hello all, I have some VB code that spits an Access query out into Excel and attempts to create a chart from it. The problem is it spits it into a format that Excel can't really eloquently make a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.