An open API service indexing awesome lists of open source software.

https://github.com/vishwas-r/export-canvasjs-chart-data-as-csv

Allows you to export CanvasJS Chart Data as CSV
https://github.com/vishwas-r/export-canvasjs-chart-data-as-csv

canvasjs canvasjs-charts canvasjs-csv chart charting-library javascript-charts

Last synced: 23 days ago
JSON representation

Allows you to export CanvasJS Chart Data as CSV

Awesome Lists containing this project

README

        

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

## 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?

### Importing Script
Import the CanvasJS & CanvasJS Export as CSV scripts
```
/* HTML Script Tag */

/* 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 & Render the Chart
- Enable Exporting by setting exportEnabled property to true.
- Render the chart.

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

#### When exportEnabled is set to true
![exportEnabled true](https://raw.githubusercontent.com/vishwas-r/Export-CanvasJS-Chart-Data-as-CSV/master/screenshots/export-chart-as-csv-dropdown.png)

##### Note:
- Plugin was last tested with **CanvasJS Chart v3.7.5GA**
- This plugin requires you to have CanvasJS License. Please visit **[CanvasJS](https://canvasjs.com/license/)** for more info.

BuyMeACoffee