PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

Does PptxGenJS support Sunburst chart?

Open rejochandran opened this issue 3 years ago • 1 comments

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,

  1. Analysed the source code for alternate implementation
  2. Searched the OpenXml.Drawing.Charts documentation for API if it had support for Sunburst, was not able to find any (ref link)
  3. 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!

rejochandran avatar Jun 07 '21 07:06 rejochandran

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

rejochandran avatar Jun 09 '21 08:06 rejochandran