473,508 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

confused about Pear::Image_Graph

I'm a bit confused about image_graph - I'm just trying to create a line
graph with multiple lines, be able to assign the text for the x and y ticks
and colors for the lines. A legend would be nice, but I can build that
outside.

I can create a graph and set values, that works. the setColor method seems
to do nothing, but then again, I have no idea what it's supposed to accept
- many of the functions are expecting hard-coded values (e.g. addData
($values,"line") creates a line graph), so it could be a hard-coded color,
or an RGB value, or an RGBA value. No clue.

Then, how do you modify an axis? There are axis constructors, but I see no
way to relate them to the graph. No "setXAxis" method, no return of an
"Image_Graph_Axis" pointer from a function (like addData returns a pointer
to an Image_Graph_Line_Common object.

In other words, these classes are really poorly documented, I haven't been
able to find any sample code, and the don't follow any kind of conventions
for "is related to" relationships as found in oo designs.

If anyone has recommendations other than Pear, please let me know.

Thanks,
Greg
Jul 17 '05 #1
2 1782
On Wed, 28 Jul 2004 11:31:35 +0000, Greg Bryant wrote:
I'm a bit confused about image_graph -

[ snip ]

If anyone has recommendations other than Pear, please let me know.

Google for 'JPGraph'.. very quick and easy to generate graphs with and a
large manual with great explanations and details too. Unless I'm doing the
most basic of graphs which I can hack up quick manually with just GD
functions, JPGraph is normally my choice of weapon =)

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #2
"Ian.H" <ia*@WINDOZEdigiserv.net> wrote in
news:pa***************************@bubbleboy.digis erv.net:

Google for 'JPGraph'.. very quick and easy to generate graphs with and
a large manual with great explanations and details too. Unless I'm
doing the most basic of graphs which I can hack up quick manually with
just GD functions, JPGraph is normally my choice of weapon =)


Ah - very nice docs indeed. Thanks for the reccy.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1564
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...
2
1729
by: Mladen Gogala | last post by:
Is anybody aware of some convenient chart drawing module? I'm looking for something like Chart::Pie, Chart::Strip or Chart::Plot. The idea is the following: I'm creating capacity planner for an...
2
7604
by: Mag Gam | last post by:
Is it possible to use GNUPlot with PHP? I would like to get interactive plot ranges, instead of someone telling me the range of data, I would like to input start, finish in a text box, and have...
4
2187
by: mardini | last post by:
I am currently searching for a graph charting library for a website I'm building. The graphs will be mostly financial (stocks, trade volumes, ....etc). I searched the web and found multiple...
5
3020
by: Shawn Hamzee | last post by:
Hello All, I am having a problem with Image_Graph on php 5.1.4. I installed the package and all of its dependencies through pear installer without any hitches. Then I started to add some very...
0
1002
by: brendan.wong | last post by:
i have alot of raw data (e.g. x-coords, y-coords) stored in text files, and i'm reading from those text files so that i can use that data to create graphs. i'm currently using the image_graph...
12
1358
by: crazychrisy54 | last post by:
Hi there I currently have a Python program outputing to the command line, durations of 'completed Steps' and 'data items' in relation to time i.e. --------------jfh ---------kl //kl...
2
1432
by: R C V | last post by:
hi, can someone advice me on how to go about drawing graphs based on data points returned from a SQL query and displaying them on a html page. Any pointers will help. Thanks, R C
6
2407
by: nospam | last post by:
I have tried Google Chart API, graidle and GD. * Google Chart API is nice, but you have to send all parameters to google server. It is not safe and fast. * Graidle has great potential. But it is...
0
7224
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
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
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
7494
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
5626
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
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.