Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cewolf Multiple Charts - Tooltip / Link Issue

 
Matt McCray
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic