apache / apache/echarts

[Feature] Support exporting chart data to CSV

Open
#21,693 7 comments 3 reactions 0 assignees View on GitHub
en new-feature topic: toolbox
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

Many dashboard applications allow users to export the underlying chart data for further analysis, reporting, or sharing. While ECharts currently supports exporting a chart as an image, there is no built-in way to export the displayed data as a CSV file.

Today, developers need to implement their own CSV export logic for every chart, even though ECharts already has access to the data being visualized. This results in duplicated effort across projects and inconsistent implementations.

A built-in CSV export would provide a consistent, reusable solution for a common requirement in analytics and business applications.

If this feature were available natively in ECharts, it would reduce implementation effort for many developers and provide a more complete end-user experience.

Note: I hope you’ll consider adding this feature. If it’s accepted but not something the team plans to implement in the near term, I’d be happy to contribute a PR :)

### What does the proposed API look like?

One possible approach would be to extend the existing toolbox.feature API with a built-in CSV export option.
```
option = {
toolbox: {
feature: {
saveAsImage: {},
saveAsCSV: {
show: true,
filename: 'chart-data'
}
}
}
};
```
When the user clicks Export CSV, ECharts would generate and download a CSV containing the data currently represented by the chart.

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing toolbox.feature API and saveAsImage feature, then trace how ECharts accesses the data represented by a chart. Done means a saveAsCSV option can generate and download that data as CSV using the requested filename.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.