XLSX export drops the chart of a chart view without a finding
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript
調査の方向性
Start with packages/pivotkit-report/src/render.js and packages/pivotkit-core/src/xlsx.js, then read docs/use/export.md and the render_view description plus CLI help. Reproduce the display: "chart" XLSX export and inspect how findings are returned. Done means the agreed short term behavior reports the missing chart, or a chosen native chart implementation exports it with the documented format behavior.
索引モデルが issue の本文から書いたものです。
説明
When a view has display: "chart", an XLSX export holds only the table. The chart is dropped without a word: the result of render_view has no finding about it.
What happens
I rendered a view with "display": "chart", "chart": { "type": "line" } once as html and once as xlsx through the MCP server (render_view). The HTML report shows the line chart above the table. The workbook has the table only, and findings is empty.
packages/pivotkit-report/src/render.js: thexlsxbranch callstoXlsx(grid, ...)with the grid only. OnlysvgandhtmlcallchartOf(), and only thehtmlbranch reportschartUnavailable.packages/pivotkit-core/src/xlsx.js:toXlsxwrites a single sheet with no drawing or chart part.docs/use/export.mdlists what the workbook holds, and a chart is not in that list. So this matches the docs. The tool description ofrender_view("xlsx (Excel, the default) ... svg for the chart") does not say so, though, and an agent or user who asks for "the same as Excel" expects the chart.
Not affected: html and svg, as well as the React export menu, where the chart is downloaded as its own PNG/SVG next to the workbook.
Proposal
- Short term: when
displayis"chart"andformatis"xlsx", add a finding (e.g.chartNotInXlsx, "The workbook holds the table; the chart is in html or svg"). Mention it in therender_viewdescription, the CLI help anddocs/use/export.md. - Feature: write the chart as a native Excel chart (DrawingML
xl/charts/chart1.xmlplus a drawing on the sheet) that refers to the table's cell ranges, so it stays live in Excel. Bar, line, area and pie map directly; donut and heatmap need a decision (doughnut chart; heatmap stays the table's colour scale). This adds size topivotkit-core, so it may belong inpivotkit-reportor as an option.
How to reproduce
render_view with format: "xlsx" and this view, then open the file: no chart, findings: [].
{
"version": 2,
"rows": ["Monat"],
"cols": ["Region"],
"derived": [{ "name": "Monat", "field": "Month", "by": "yearMonth" }],
"values": [{ "field": "Revenue", "agg": "sum" }],
"display": "chart",
"chart": { "type": "line" }
}
I checked this through the MCP server only. The CLI goes through the same render() and should behave the same way, but I have not run it.
- 主要言語
- JavaScript
- スター
- 1
- フォーク
- 1
- 平均マージ
- 3時間 34分
- マージ済み PR(30日)
- 213
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eizedev/pivotkit のほかの issue
-
area:server enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
area:server bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
area:server enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
documentation idea
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
area:tests idea
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
eizedev/pivotkit の issue をすべて見る
似ている issue
-
入群码过期オープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
aliyun/ai-agent-handbook#29 · コメント 1 件 ·
-
docs documentation need-triage SaaS
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/cloudstack#14719 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信