Guys, Finally managed to display the tooltip generated by JFreeChart in the wicket page by following these instructions<http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results> . Had only an example markup been given in that post, it would have saved lots of frustrating hours I spent. :-(
For anyone looking forward for showing the tooltips in a chart generated by JFreeChart, here is the markup you might need. <code> <img wicket:id="chart" usemap="#tooltip"></img> </code> For the java part, use this code<http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results> . Your output should look something like this.. <code> <img wicket:id="chart" usemap="#tooltip" src="blah blah"></img> <map id="tooltip" name="tooltip"> <area/> </map> </code> NOTE: - You must use <code> <img wicket:id="chart" usemap="#tooltip"></img> </code> and not <code> <img wicket:id="chart" usemap="#tooltip"/> </code> - You must use the "#" symbol before the "usemap" id. - The image map related html markup is generated by the api provided by JFreeChart. On Fri, Oct 1, 2010 at 10:34 AM, James <james.eliye...@gmail.com> wrote: > Hi Peter, > > Thanks for your prompt reply. > I don't know how I missed this wonderful mailing list for this long.. ;-( > > I have tried passing models to constructImageMap (wrapping the chart image > object as a model) but somehow the map was not updated. > > I checked jetwick and it looks cool. ;-) > Do you use JFreeChart to create those charts? > I'm willing to try that option as well. Kindly blog about it! > > Thanks once again for taking your time to reply. > > > On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich <peat...@yahoo.de> wrote: > >> Hi James, >> >> In the constructImageMap you whill have to pass a model as well, but I'm >> not sure how :-( >> >> Another way would be to adapt constructImageMap to updateImageMap >> so that you can call it in ChartImage.createBufferedImage (or every time >> the model updates) >> >> BTW: For jetwick I used an html solution with div's to display bar charts. >> which is customizable by the designer (if any ;-)), readable by spiders >> etc >> and didn't need those imagemaps. Are you interested in this solution? I >> could blog about it. >> >> Regards, >> Peter (aka timetabling on twitter ;-)). >> >> > Hi Guys, >> > >> > I followed the instructions in the wiki "JFreeChart with clickable >> > imagemap< >> https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" >> > to create a chart. >> > I have a requirement whereby the chart has to be generated dynamically >> based >> > on certain inputs. >> > I managed to create the chart image by using LoadableDetachableModel but >> > struggling to get the imagemap updated as the chart image changes. >> > Kindly give your valuable suggestions. >> > >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Thanks & Regards, > James > -- Thanks & Regards, James