Skip to content

[Feature] Support exporting chart data to CSV #21693

Description

@abzalzhaksylyk

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions