Home > Archive > PHP Programming > July 2004 > confused about Pear::Image_Graph
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
confused about Pear::Image_Graph
|
|
| Greg Bryant 2004-07-28, 8:57 pm |
| I'm a bit 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
| |
|
| On Wed, 28 Jul 2004 11:31:35 +0000, Greg Bryant wrote:
> I'm a bit 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/
| |
| Greg Bryant 2004-07-29, 3:56 pm |
| "Ian.H" <ian@WINDOZEdigiserv.net> wrote in
news:pan.2004.07.28.12.45.27.63000@bubbleboy.digiserv.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.
|
|
|
|
|