plainheart commented on issue #21693:
URL: https://github.com/apache/echarts/issues/21693#issuecomment-5014957686

   Thank you for raising this feature request. Exporting CSV data is indeed a 
common requirement for dashboards and analytics applications.
   
   To avoid bundling CSV, PDF, XLSX, and their potential third-party 
dependencies into the ECharts core package, I suggest a plugin-based approach: 
ECharts core would expose stable extension points for export capabilities and 
Toolbox features, while an independent `export-toolbox` package would provide 
image, CSV, PDF, and other exporters on demand. The plugin could support both a 
UI entry such as `toolbox.feature.exportData` and a programmatic API such as 
`exportChart(chart, { format: 'csv', ... })`, with both paths sharing the same 
export implementation.
   
   The CSV data source should remain explicit and configurable, for example, by 
accepting table data directly or a `getTable()` callback. In the future, 
ECharts core could also expose a stable read-only data snapshot API to cover 
more complex cases involving `dataset`, transforms, encodes, and multiple 
series. This would address the `saveAsCSV` use case while preventing the core 
bundle and API surface from growing indefinitely as more export formats are 
requested.
   
   Related issues: #21038 #5644 #15250 #18979 #20142 #5825 #5181


-- 
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]

Reply via email to