[tpm] GD::Graph question
mfowle at navicominc.com
Mon Aug 25 13:33:51 PDT 2008
If SVG is OK for you (client browser support wise)
I'd go one of two routes:
1. draw a SVG graph with the first dataset and a second graph with
almost everything 0% opaque so only the line shows up.
2. get into SVG Graph and change the code so y scale can be a scalar or
an array. Then adjust the scaling code to use the array element
corresponding to the dataset.
Idea 2 is probably implementable in GD Graph.
From: toronto-pm-bounces+mfowle=navicominc.com at pm.org
[mailto:toronto-pm-bounces+mfowle=navicominc.com at pm.org] On Behalf Of
Sent: Monday, August 25, 2008 4:26 PM
To: Scott Elcomb
Subject: Re: [tpm] GD::Graph question
Scott Elcomb wrote:
> On Sun, Aug 24, 2008 at 7:47 PM, Alex Beamish <talexb at gmail.com>
>> My first Perl gig ten years ago was doing graphs, and I used Gnuplot
>> quite successfully to draw graphs-- it's a very flexible package.
> Hmm. My first gig involved writing wrappers around GD::Graph. Since
> it was "my first gig" the code in my ... um... uh... library "SAL"
> definitely reflects that. One day I might even get around to
> modernizing it and making it useful.
> Unfortunately (fortunately?) I never had to deal with this particular
> problem. Madison, if you find a solution could I ask that you post it
> up for us?
> Many thanks.
> - Scott.
At this point, I've moved on from GD::Graph and am playing with
SVG::TT::Graph. I'm having mixed luck; It seems like a much more
flexible solution and I am getting cleaner graphs, but I have not yet
been enable to figure out to create a dual Y-axis graph, assuming it is
possible at all.
Once I figure something out I will indeed post it to the list "for
toronto-pm mailing list
toronto-pm at pm.org
More information about the toronto-pm