s="hljs-keyword">new</span> Chart(ctx, config);
</code></pre>
<h2 id="destroy">.destroy()</h2>
<p>Use this to destroy any chart instances that are created. This will clean up any references stored to the chart object within Chart.js, along with any associated event listeners attached by Chart.js.
This must be called before the canvas is reused for a new chart.</p>
<pre><code class="lang-javascript"><span class="hljs-comment">// Destroys a specific chart instance</span>
myLineChart.destroy();
</code></pre>
<