carbone
carbone copied to clipboard
[Bug Report]: pie chart in docx template after data replace cannot be displayed normally.
Environment Carbone Version: [email protected] Node Version: v14.12.0 Browsers: -- Desktop OS: Mac Os 11.0.1 (20B29) LibreOffice: tried 7.0.4 & 6.4.7
Expected Behaviour
- Template: use a 'docx' file with a pie chart 2.Just inject a simple json data into the template.The 'result.docx' hopes to be displayed normally.
Actual Behaviour After the data is replaced, the pie chart cannot be displayed normally in 'result.docx'.
Steps to reproduce Steps to reproduce the bug:
- git clone https://github.com/isfang/carbone-research.git
- cd carbone-research
- node test.js
- open 'result.docx', the pie chart can not be displayed normally
Screenshots
template file:
after data replace:

but 'result.docx' can not be displayed normally.
Reproduction Link / Code example You can share your Carbone code through https://codesandbox.io/ or directly on this file.
Other comments Add any other context about the problem here.
If you do not add 'hardRefresh: true', edit and close the result file it will display normally. If you add it, it will also be invalid.
Hello @isfang, thank you for reaching us! Carbone is not able yet to generate DOCX reports with charts and this is a project coming for 2021. I keep your use case for future testing ;)
Hello @isfang, thank you for reaching us! Carbone is not able yet to generate DOCX reports with charts and this is a project coming for 2021. I keep your use case for future testing ;)
Thank you for your reply, maybe 'embeddings/Microsoft_Excel____\d' has been processed, '/word/charts/chart[0-9]*.xml also ' needs to be processed.
Yes, I already analyzed and noted that part for future development ;)