File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Cewolf Multiple Charts - Tooltip / Link Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Cewolf Multiple Charts - Tooltip / Link Issue" Watch "Cewolf Multiple Charts - Tooltip / Link Issue" New topic
Author

Cewolf Multiple Charts - Tooltip / Link Issue

Matt McCray
Greenhorn

Joined: May 20, 2009
Posts: 10
I am using Cewolf to generate a dynamic number of charts on a page. A chart will be generated for each “team” that the user selects on the previous page. I have no way of knowing how many teams will be selected. So I just loop through in the jsp and create a chart for each team selected.

My problem is that the image map that is used for tool tips and links is only correct for the first chart. All following charts use the map from the first chart. It doesn’t seem to matter whether I use the Cewolf or JfreeChart generators.

Any ideas / solutions would be appreciated.

Matt McCray
Greenhorn

Joined: May 20, 2009
Posts: 10
I had been moved away from this project for a while. I am now back to where I am looking at this code. I have found a simple solution. Each time the loop iterates the chart needs a unique id. My solution was to add a variable to the chart id using EL. In the example below I used the team name that is already being passed, ${team.key}, but this could just as easily be an integer that is incremented with each iteration.


I hope this helps someone.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cewolf Multiple Charts - Tooltip / Link Issue