an class="hljs-comment">// =&gt; returns png data url of the image on the canvas</span>
</code></pre>
<h2 id="generatelegend">.generateLegend()</h2>
<p>Returns an HTML string of a legend for that chart. The legend is generated from the <code>legendCallback</code> in the options.</p>
<pre><code class="lang-javascript">myLineChart.generateLegend();
<span class="hljs-comment">// =&gt; returns HTML string of a legend for this chart</span>
</code></pre>
<h2 id="getelementatevente">.getElementAtEvent(e)</h2>
<p>C