Skip to content

vishwas-r/Export-CanvasJS-Chart-Data-as-JSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Export CanvasJS Chart Data as JSON

This is a plugin for CanvasJS Charts that allows you to export and save CanvasJS Chart's data as JSON.

CanvasJS

CanvasJS is built from ground up for high performance data visualization and can render millions of data points in a matter of milliseconds. Charts are beautiful and API is very simple to use.

How to Use?

  • Create and Render CanvasJS Chart
  • Call CanvasJSDataAsJSON method with chart and filename as parameter
var chart = new CanvasJS.Chart("chartContainer", {
    .
    .
    .
    //Chart Options
    .
    .
    .
});
chart.render();

CanvasJSDataAsJSON(chart [,"filename"]);
//or
chart.exportAsJSON(["filename"]);

When exportEnabled is set to true

exportEnabled true

When exportEnabled is set to false

exportEnabled false

When exportEnabled is set to false & zoomEnabled is set to true

exportEnabled false

Note:
  • Plugin was last tested with CanvasJS Chart v3.4 Beta 1
  • This plugin requires you to have CanvasJS License. Please visit CanvasJS for more info.