chart = new ApexCharts( document.querySelector("#myChart"), options ); chart.render(); var dataURL = chart.dataURI().then((uri) => { console.log(uri); });