GD::Graph with Image Map implementation question
am 27.06.2007 21:10:49 von dkelemenHello,
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