[#11351] - Hyperlink not working for (jfree) chart rendered using SVG exported to HTML

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Critical
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

The issue occurs when exporting to HTML

When a jfree chart has a hyperlink on the series and the Render Type is 'default', 'draw', or 'image', hyperlinks work as expected.

When we change the Render Type to SVG, the hyperlinks appear in the 'area' tag, but the image appears to be missing the 'usemap' attribute.

When previewing an SVG rendered chart in JSS using HTML, the hyperlinks are not working.

When previewing the same SVG rendered chart in the JSS java viewer, the hyperlinks are functional.

v6.6
Charts
gthompson's picture
Joined: Feb 28 2013 - 12:16pm
Last seen: 2 weeks 3 days ago

1 Comment:

#1

I am adding an example in hopes that this will be reviewed and fixed.

Additional detail - we use the property "net.sf.jasperreports.export.html.embed.image" set to "true". This may be the key as to what is happening. If we leave this out, and use the HTML view in JSS, the hyperlinks are still available. We need the images embedded for our viewer to display them.

The sample has the same chart side by side. The left side is using the default renderer, while the right side is set to 'svg'.

AttachmentSize
Binary Data charthyperlinktest.jrxml4.89 KB
Feedback