[Feature] Support exporting chart data to CSV

Đang mở
#21,693 8 bình luận 4 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
data-visualization

Hướng nghiên cứu

Bắt đầu bằng cách đọc API toolbox.feature hiện có và feature saveAsImage, sau đó theo dõi cách ECharts truy cập dữ liệu được biểu diễn bởi một biểu đồ. Công việc được xem là hoàn tất khi một tùy chọn saveAsCSV có thể tạo và tải xuống dữ liệu đó dưới dạng CSV bằng tên tệp được yêu cầu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

en new-feature topic: toolbox
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.

Ngôn ngữ chính
TypeScript
Star
67.7k
Fork
19.9k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/echarts

Tất cả issue của apache/echarts

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.