This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Cewolf Multiple Charts - Tooltip / Link Issue

 
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.
 
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!