chart.datauri() code example
Example: javascript apexcharts to base 64 image
chart = new ApexCharts(
document.querySelector("#myChart"),
options
);
chart.render();
var dataURL = chart.dataURI().then((uri) => {
console.log(uri);
});
chart = new ApexCharts(
document.querySelector("#myChart"),
options
);
chart.render();
var dataURL = chart.dataURI().then((uri) => {
console.log(uri);
});