export as image not working
<p>I am trying to export a chart as image, here is the code</p>

<pre><code>var safedata = '&lt;button id="safedata" type="button" style="margin-left:83.9%; margin-top:-16.4%; width:4%;position: fixed;"&gt;Image&lt;/button&gt;';
    $('#placeholder').append(safedata);
    $('#safedata').click(function(){
        self.safeDataListener.saveAsPNG($('#placeholder svg')[0].outerHTML);
        self.safeDataListener.saveAsPNG($('#placeholder svg')[1].outerHTML);
    });
</code></pre>

<p>but when I click the image button it opens a pop up window and displays nothing.</p>

<p>looking for solutions</p>
