Menu

#14 ChartCreator bug with generated image map

open
nobody
None
5
2008-09-26
2008-09-26
Anonymous
No

When using the generateMap and ongeneratedimagemapclick attributes of the chart tag, the ChartRenderer component omits the usemap declaration from the rendered img tag.

This means the imagemap functionality fails.
(Firefox 3.0.2, IE 6)

It is straightforward to fix:
net.sf.jsfcomp.chartcreator.renderkit.ChartRenderer r831, encodeBegin() method

add

if(chart.getGenerateMap() != null) writer.writeAttribute("usemap", "#" + chart.getGenerateMap(),null);

to the section which renders the img attributes.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.