]> source.dussan.org Git - poi.git/commitdiff
[github-192] Fix DOUGHNUT chart creation. Thanks to Tomás Cerdá. This closes #192
authorPJ Fanning <fanningpj@apache.org>
Tue, 1 Sep 2020 21:04:24 +0000 (21:04 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 1 Sep 2020 21:04:24 +0000 (21:04 +0000)
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

index f5cc461cc35ba8bc948167c3776dc0db3221c342..88592c08437ad0cae5161c6446277f65bd03e5d1 100644 (file)
@@ -650,7 +650,7 @@ public abstract class XDDFChart extends POIXMLDocumentPart implements TextContai
         Map<Long, XDDFChartAxis> categories = null;
         Map<Long, XDDFValueAxis> 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);
         }