ApexCharts provides options to export your charts as images or CSV files, making it easy to share your data.
var options = {
chart: {
type: 'line',
toolbar: {
show: true,
tools: {
download: true
}
}
},
series: [{
name: 'Sales',
data: [10, 20, 15, 30, 25, 40, 35]
}],
xaxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul']
},
title: {
text: 'Sales Data with Export Option',
align: 'center'
}
}
var chart = new ApexCharts(document.querySelector("#chart"), options);
chart.render();