• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Cewolf Multiple Charts - Tooltip / Link Issue

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic