abzalzhaksylyk opened a new issue, #21693:
URL: https://github.com/apache/echarts/issues/21693
### 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 :)
### 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]