From: PJ Fanning Date: Tue, 1 Sep 2020 21:04:24 +0000 (+0000) Subject: [github-192] Fix DOUGHNUT chart creation. Thanks to Tomás Cerdá. This closes #192 X-Git-Tag: before_ooxml_3rd_edition~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=915d1a216e6877f9b15477640ec215ff865f945f;p=poi.git [github-192] Fix DOUGHNUT chart creation. Thanks to Tomás Cerdá. This closes #192 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881380 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java index f5cc461cc3..88592c0843 100644 --- a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java +++ b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java @@ -650,7 +650,7 @@ public abstract class XDDFChart extends POIXMLDocumentPart implements TextContai Map categories = null; Map mapValues = null; - if (ChartTypes.PIE != type && ChartTypes.PIE3D != type) { + if (ChartTypes.PIE != type && ChartTypes.PIE3D != type && ChartTypes.DOUGHNUT != type) { categories = Collections.singletonMap(category.getId(), category); mapValues = Collections.singletonMap(values.getId(), values); }