carbone icon indicating copy to clipboard operation
carbone copied to clipboard

[Bug Report]: pie chart in docx template after data replace cannot be displayed normally.

Open isfang opened this issue 4 years ago • 4 comments
trafficstars

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

  1. 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:

  1. git clone https://github.com/isfang/carbone-research.git
  2. cd carbone-research
  3. node test.js
  4. open 'result.docx', the pie chart can not be displayed normally

Screenshots template file: image after data replace: image

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.

isfang avatar Jan 28 '21 07:01 isfang

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.

isfang avatar Jan 28 '21 09:01 isfang

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 ;)

steevepay avatar Feb 03 '21 09:02 steevepay

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.

isfang avatar Feb 04 '21 09:02 isfang

Yes, I already analyzed and noted that part for future development ;)

steevepay avatar Feb 04 '21 09:02 steevepay