XLSX export drops the chart of a chart view without a finding
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript
- Domínio
- data, data-visualization
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- JavaScript
- Estrelas
- 1
- Forks
- 1
- Merge médio
- 3h 34min
- PRs com merge (30d)
- 213
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de eizedev/pivotkit
-
area:server enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
area:server bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
area:server enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia
-
documentation idea
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
area:tests idea
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
Todas as issues de eizedev/pivotkit
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Edit: Telemante [YT]Abertachannels:edit check:passed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
swc-project/swc-next-issues#490 ·
-
[workshop-sim] Improve: Add predict-and-check practice and checkpoint to Step 4 Actions introAbertafeedback simulation workshop
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
githubnext/gh-aw-workshop#5826 ·
Mantenedores costumam responder em até 1 dia