Click here to get back home

GD::Graph with Image Map implementation question

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
GD::Graph with Image Map implementation question dkelemen 06-27-2007
Posted by dkelemen on June 27, 2007, 3:10 pm
Please log in for more thread options


Hello,
I currently have two embedded perl pages, one that gathers a bunch
of data and displays it (view.epl), and another that returns a gif
image of the data with GD::Graph (graph.epl) The first page calls the
second page in an img src=graph.epl?data=1,2,3 format

Right now, I am working on turning the lovely mixed graph image into
an image map by using the get_hotspot() function so that when I
mouseover the bars or lines, the actual data is displayed, but it
seems like my design is not capable of doing this since the GD::Graph
is only in an img file, and the html file doesn't know about the
graph.

I was wondering if anyone had done anything like this before and
would have any suggestions? I guess I could do away with the graph
epl and just print out the graph to a file in the main view.epl,
getting the hotspots at the same time. But writing to a file every
time seems superfluous and like it might leave the possibility of
concurrent users overwritting their graphs. Is there a better
approach to take?

Thanks a lot,
Dan


Posted by dkelemen on June 28, 2007, 1:04 pm
Please log in for more thread options


On Jun 27, 3:10 pm, dkele...@gmail.com wrote:
> Hello,
> .....
> Right now, I am working on turning the lovely mixed graph image into
> an image map by using the get_hotspot() function so that when I
> mouseover the bars or lines, the actual data is displayed, but it
> seems like my design is not capable of doing this since the GD::Graph
> is only in an img file, and the html file doesn't know about the
> graph.

What I ended up doing just to have it working is re-create the graph
in the main html page, since I have all the data there, solely for the
purpose of grabbing the hotpsots (still using the image link to
another graph drawing page). This worked ok as a quick fix, but still
doesn't feel quite right.

-Dan


Similar ThreadsPosted
combining graphs from GD::Graph in one image file May 28, 2006, 9:51 am
Win32::OLE & implementation of interfaces July 7, 2006, 2:41 am
Appropriate Namespace for a PBKDF1 implementation? November 13, 2006, 10:11 pm
GD::Graph - how to get rid of leading gap in line graph? October 1, 2004, 10:56 am
Graph.0.69 Module---how to get a DAG from graph with cycles January 23, 2006, 2:50 pm
GD::GRAPH two_axes December 8, 2004, 6:01 pm
GD::Graph isn't numeric etc. January 26, 2005, 7:43 pm
GD graph, Several Colors per Bar? May 30, 2005, 6:52 pm
Name for a new Tk Graph module April 4, 2007, 6:17 am
Perl GD::Graph module: bug? August 3, 2004, 8:42 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap