title: How to write excel file with chart using js-xlsx
body: <p>Using <code>SheetJS js-xlsx</code> <code>"xlsx": "0.15.1"</code> js is there a way to write excel file with chart.</p>
  
  <p>Basically I want to export html page that contains chart into an excel file.</p>
  
  <p>HTML page is getting exported successfully but the chart in the page is not getting  displayed.</p>
  
  <p>Here is the code I have used</p>
  
  <pre><code>let wb =XLSX.utils.book_new();
  
   let element: any = document.getElementById('page1');
   let ws = XLSX.utils.table_to_sheet(element);
   XLSX.utils.book_append_sheet(wb,ws,'page1');
  </code></pre>