Save as CSVSaves Chart Data as CSV-Formatted File

Save as CSV
VIEW MORE FEATURES
VIEW HTML
EDIT ON CODEPEN
A csv-formatted file with the chart data can be saved to the local device. In this example, one JavaScript function (saveToCSV ()) and one PHP script (downloadLocal.php) are used to save the chart data to the local computer. You can find the php script in the Samples directory by downloading the trial version.
function saveToCSV () {
KoolChart.downloadToLocal("KoolChart", "csv", "https://www.koolchart.com/snapshotSample/downloadLocal.php", function() {
return document.getElementById("chart1").getCSVData();
});
}