JasperReports SVG chart in HTML report
<p>Is it possible to have sharp or at least not very blurry charts in JasperReports when exported in HTML format?</p>

<p>I use SVG chart renderer type, which is fine for PDF exports. HTML exports remain blurry.</p>

<p>I tried to create SVG programaticaly with JFreeChart and BatikRenderer (using a scriptlet). I get SVG XML which i set as String variable in jrxml file and use it in image element:</p>

<pre><code>&lt;image scaleImage="FillFrame"&gt;
    &lt;reportElement positionType="Float" x="401" y="566" width="159" height="124" uuid="1baa80f7-3151-4fb8-be85-140059e9e28e"/&gt;
    &lt;imageExpression&gt;
        &lt;![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstanceFromText($V{Chart})]]&gt;
    &lt;/imageExpression&gt;
&lt;/image&gt;
</code></pre>

<p>With this approach image is still blurry (later i noticed all image resources in HTML export are in .png format).</p>

<p>Using code below still generates PNG image in HTML export</p>

<pre><code>net.sf.jasperreports.renderers.BatikRenderer.getInstanceFromText("&lt;svg xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.0\" width=\"100\" height=\"100\"&gt;&lt;circle cx=\"50\" cy=\"50\" r=\"40\" stroke=\"green\" stroke-width=\"4\" fill=\"yellow\" /&gt;&lt;/svg&gt;")
</code></pre>

<p>Is there a way to use generated SVG XML inside of Jasper report or any other solution to get sharp images of charts in HTML file? I was also considering using generated SVG XML inside of TextField component with HTML markup but i don't think that's possible with all HTML tags, just basic ones like <code>&lt;b&gt;</code> and <code>&lt;br&gt;</code>.</p>