title: how to download image in javascript which is based on chart js
body: <p>I have an array with different symbols and I am looping over that array to get each symbol but after getting that symbol I am calling an API which is creating a chart in chart js. Now What I want is to download that chart in the form of an image or png.
  symbols = ['a', 'b','c']</p>
  <p>here the chart is creating using chart.js
  and the chart is creating inside this canvas</p>
  <pre><code>&lt;canvas id=&quot;myChart&quot; width=&quot;715&quot; height=&quot;715&quot; style=&quot;display: block; box-sizing: border-box; height: 794.444px; width: 794.444px;&quot;&gt;&lt;/canvas&gt;
  </code></pre>