[pm-h] GD Charts + HTML Image Maps

G. Wade Johnson gwadej at anomaly.org
Thu Nov 3 19:26:41 PST 2005


On Thu, 03 Nov 2005 20:16:57 -0600
"Will Willis" <willis3140 at hotmail.com> wrote:

> I want to create Pie Charts and maybe Histograms with GD, or some other 
> popular CPAN module. I can figure out that part just fine. what I also want 
> to do is to lay an HTML image map over the graphic so that each segment of 
> the graph can link to a different page. Does anyone have experience with 
> this, or know of any CPAN modules that my be of help to me?
> 
> After searching the web I found one product that fits the bill, but it looks
> 
> like a pay-per-graph hosted solution. http://graphmagic.com/.

I haven't worked with any modules for doing client side image maps, but the
HTML for them is not real difficult. See the following link for the spec.

  http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.6

The hard part is usually identifying the areas you want to link. Since you are
generating the images, you probably have the information you need in the
script.

Sorry about the brute force approach, but it will work.

G. Wade
-- 
The purpose of software engineering is to control complexity, not to create
it.                                                   -- Pamela Zave


More information about the Houston mailing list