469,939 Members | 2,382 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,939 developers. It's quick & easy.

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 1644
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Greg Bryant | last post: by
2 posts views Thread by Mladen Gogala | last post: by
2 posts views Thread by Mag Gam | last post: by
4 posts views Thread by mardini | last post: by
5 posts views Thread by Shawn Hamzee | last post: by
reply views Thread by brendan.wong | last post: by
12 posts views Thread by crazychrisy54 | last post: by
2 posts views Thread by R C V | last post: by
6 posts views Thread by nospam | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.