title: How to export CSV and XLS with external button in Highcharts
body: <p>As you can see in <a href="http://jsfiddle.net/9pxurfga/" rel="nofollow noreferrer">http://jsfiddle.net/9pxurfga/</a></p>
  
  <p>I have <strong>export buttons outside</strong> the chart, and I need to download data to <strong>CSV</strong> and <strong>XLS</strong>.</p>
  
  <p>With highcharts export default button everything works fine : PNG, JPEG, CSV, XLS.</p>
  
  <p>With my custom button <strong>PNG</strong> export is OK, but not the others.</p>
  
  <p>I dont know how to use <em>exportChart</em> function for <strong>CSV</strong> and <strong>XLS</strong>, it seems to work only with image, but not with data/text format.</p>
  
  <pre><code>$('#button1').click(function () {
      var chart = $('#container').highcharts();
      chart.exportChartLocal({
          type: 'text/csv'
      });
  });
  </code></pre>