ly resize the canvas element. This is run each time the canvas container is resized, but you can call this method manually if you change the size of the canvas nodes container element.</p>
<pre><code class="lang-javascript"><span class="hljs-comment">// Resizes &amp; redraws to fill its container element</span>
myLineChart.resize();
<span class="hljs-comment">// =&gt; returns &apos;this&apos; for chainability</span>
</code></pre>
<h2 id="clear">.clear()</h2>
<p>Will clear the chart canvas. Used extensively 