> (Sorry this is late!)

Sorry this reply is VERY VERY late.

> Alex Brelsfoard had asked the list about creating graphs for a specific
> project, inspiring the topic of this meeting.  He demonstrated the use of
> GD::Graph, including several different styles of graphs.  He also explained
> why his requirements led him to go with a Java-based solution in the end.

He also wondered if it was possible to overlay other graphical
elements on a GD::Graph in alignment, and feared it wasn't. I asserted
it was and that I'd don't it, but since we ran out of time, didn't
have time to demonstrate.

The keys are
  $graph->set('imagemap'=>'true');
   # add data sets ...
  my $gd= $graph->make_gd();
   ### Use of undef for missing values breaks imagemap_dump(),
   ### if you have nulls may need to cheat.
   ### my $imagemap_ref =$graph->{'imagemap_data'}  ;
   my $imagemap_ref = eval {  $graph->imagemap_dump() };
   if ($imagemap_ref) {... use it ... }

The $imagemap_ref will contain a data structure with x-y's of all the
points. IIRC, it's a ref to an array of arrays, in DataSet major
order.  You can then do regular GD graphics on the $gd ... lines,
dots, brushes, ...


--
Bill
[EMAIL PROTECTED] [EMAIL PROTECTED]
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to