[Feature] Support exporting chart data to CSV

オープン
#21,693 コメント 8 件 リアクション 4 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

まず既存の toolbox.feature API と saveAsImage feature を読み、次に ECharts がチャートで表現されているデータにどのようにアクセスするかを追跡します。saveAsCSV オプションで、要求されたファイル名を使用してそのデータを CSV として生成し、ダウンロードできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
67.7k
フォーク
19.9k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/echarts のほかの issue

apache/echarts の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。