This is a plugin for CanvasJS Charts that allows you to export and save CanvasJS Chart's data as CSV.
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.
Import the CanvasJS & CanvasJS Export as CSV scripts
/* HTML Script Tag */
<script src="https://cdn.canvasjs.com/canvasjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/export-canvasjs-chart-data-as-csv/dist/canvasjsascsv.min.js"></script>
/* or */
import CanvasJS from '@canvasjs/charts';
require('export-canvasjs-chart-data-as-csv');
Note: Load CanvasJS Export as CSV after loading CanvasJS script.
- Enable Exporting by setting exportEnabled property to true.
- Render the chart.
var chart = new CanvasJS.Chart("chartContainer", {
.
.
.
exportEnabled: true,
//Chart Options
.
.
.
});
chart.render();
- Plugin was last tested with CanvasJS Chart v3.7.5GA
- This plugin requires you to have CanvasJS License. Please visit CanvasJS for more info.