Creating an editable Word chart programmatically with docx4j (v11.4.9) #665
Unanswered
raggamozga-del
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using docx4j version 11.4.9 to generate Word documents programmatically.
I would like to create a chart that remains editable in Microsoft Word, similar to charts inserted directly via Insert → Chart in Word.
Specifically, I need to generate a chart that:
I have attached a DOCX file containing an example chart which demonstrates the desired result.
My goal is to generate such a chart programmatically using docx4j.
Questions
Is it possible to create such an editable chart from scratch using the docx4j API?
If yes, could you provide an example or point to the relevant classes/APIs that should be used?
Is the recommended approach:
I reviewed the documentation and some chart-related classes in docx4j, but I couldn't find a clear example demonstrating how to create a Word chart with embedded editable data programmatically.
Any guidance or code examples would be greatly appreciated.
template.docx
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions