Export CanvasJS Chart Data as CSV

This plugin allows you to export and save CanvasJS Chart's data as CSV. Check out Github Repository for more info / examples.

How to Use?

var chart = new CanvasJS.Chart("chartContainer", {
    .
    .
    .
    //Chart Options
    .
    .
    .
});
chart.render();

CanvasJSDataAsCSV(chart[, "filename"]);
//or chart.exportAsCSV(["filename"]);

Live Example

Example 1: When exportEnabled property is set to true


Example 2: Exporting Multi-Series Chart as CSV


Example 3: When exportEnabled property is set to false


Example 2: When exportEnabled property is set to false and zoomEnabled is set to true