Check out example codes for "apexcharts dataURI style". It will help you in understanding the concepts better.

Code Example 1

chart.render().then(() => {
    window.setTimeout(function() {
        chart.dataURI().then((uri) => {
            console.log(uri);
        })
    }, 1000) 
})

Learn ReactJs, React Native from akashmittal.com