From 915d1a216e6877f9b15477640ec215ff865f945f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 1 Sep 2020 21:04:24 +0000 Subject: [github-192] Fix DOUGHNUT chart creation. Thanks to Tomás Cerdá. This closes #192 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881380 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ooxml') 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); } -- cgit v1.2.3