internally between animation frames, but you might find it useful.</p>
<pre><code class="lang-javascript"><span class="hljs-comment">// Will clear the canvas that myLineChart is drawn on</span>
myLineChart.clear();
<span class="hljs-comment">// =&gt; returns &apos;this&apos; for chainability</span>
</code></pre>
<h2 id="tobase64image">.toBase64Image()</h2>
<p>This returns a base 64 encoded string of the chart in it&apos;s current state.</p>
<pre><code class="lang-javascript">myLineChart.toBase64Image();
<sp