https://bz.apache.org/bugzilla/show_bug.cgi?id=64992

            Bug ID: 64992
           Summary: Error creating chart data when chart type is DOUGHNUT
           Product: POI
           Version: 4.1.2-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XDDF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

The following code in XDDFChart.createData: 
if (ChartTypes.PIE != type && ChartTypes.PIE3D != type) {
            categories = Collections.singletonMap(category.getId(), category);
            mapValues = Collections.singletonMap(values.getId(), values);
        }

It will make error when ChartTypes is DOUGHNUT because axes area needed
here.But if I do this,the docx file will not be opened.

The right condition is:
ChartTypes.PIE != type && ChartTypes.PIE3D != type && ChartTypes.DOUGHNUT
!=null


Now I solve the problem by deleting all the axes after creating chart.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to