PptxGenJS
PptxGenJS copied to clipboard
Does PptxGenJS support Sunburst chart?
Hi!
Do we have support for Sunburst chart or is there a way to implement this alternatively? (something like a nested pie or similar)
What I've tried,
- Analysed the source code for alternate implementation
- Searched the OpenXml.Drawing.Charts documentation for API if it had support for Sunburst, was not able to find any (ref link)
- Sunburst was supported only on office 2016 and later and so a PR on Open-XML-SDK was added to address this #687 - this may help add this chart
Category
- [x] Enhancement
- [ ] Bug
- [x] Question
- [ ] Documentation gap/issue
Version
pptxgenjs 3.4.0
If there is a way to implement this, would be glad to code and raise a PR 🙂 Thanks!
Update
- Sunburst chart was added to office only after 2016 version and we see that PptxGenJS uses - reference
xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
- We would require the newer namespaces that incorporate the updated charts and generate them
xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex"
Sample sunburst chart - gist