Export CanvasJS Chart Data as JSON

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

How to Use?

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

CanvasJSDataAsJSON(chart, "filename");

Live Example

Example 1: When exportEnabled property is set to true


Example 2: When exportEnabled property is set to false


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