title: How can I get a URI from ApexCharts to download in PDF?
body: <p>I already implemented an ApexCharts and want to output it into a PDF document.</p>
  <p>I tried to get a download URI from <code>chart.dataURI</code>, but it failed with an error:</p>
  <blockquote>
  <p>chart.dataURI is not a function</p>
  </blockquote>
  <p>Below is the creation of the Apex bar graph and my attempt with the download URI, but it does not fetch:</p>
  <pre class="lang-js prettyprint-override"><code>var options = {
    chart: {
      height: 450,
      type: 'bar',
      width: 1000,
    },
    plotOptions: {
      bar: {
        horizontal: false,
        columnWidth: '40%',
        endingShape: 'rounded'
      },
    },
    dataLabels: {
      enabled: false
    },
    colors: ['#008000', '#d4a823', '#f92525'],
    stroke: {
      show: true,
      width: 2,
      colors: ['transparent']
    },
    series: [{
      name: 'Good',
      data: JSON.stringify(graph_data.good)
    }, {
      name: 'Okey',
      data: JSON.stringify(graph_data.ok)
    }, {
      name: 'Bad',
      data: JSON.stringify(graph_data.bad)
    }],
    xaxis: {
      categories: graph_data.month,
    },
    yaxis: {
      title: {
        text: 'Smiley Percentage'
      }
    },
    fill: {
      opacity: 1
  
    },
    tooltip: {
      y: {
        formatter: function(val) {
          return val + &quot; Smileys&quot;
        }
      }
    }
  }
  
  var chart = new ApexCharts(document.querySelector(&quot;#monthlyhistory&quot;), options);
  var dataURL = chart.dataURI().then((uri) =&gt; {  // Here shows an error
    console.log(uri);
    var pdf = new jsPDF();
    pdf.addImage(uri, 'PNG', 0, 0);
    pdf.save(&quot;download.pdf&quot;);
  })}
  </code></pre>
  <p>I expect the output in PDF format, but it is not working.</p>