You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2020/12/16 09:08:36 UTC

[Bug 64992] New: Error creating chart data when chart type is DOUGHNUT

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: dev@poi.apache.org
          Reporter: fanziang78@gmail.com
  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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64992] Error creating chart data when chart type is DOUGHNUT

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64992

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
         Depends on|                            |64950


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=64950
[Bug 64950] about doughnutchart
-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64992] Error creating chart data when chart type is DOUGHNUT

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64992

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from PJ Fanning <fa...@yahoo.com> ---
Duplicate of https://bz.apache.org/bugzilla/show_bug.cgi?id=64950

*** This bug has been marked as a duplicate of bug 64950 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64992] Error creating chart data when chart type is DOUGHNUT

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64992
Bug 64992 depends on bug 64950, which changed state.

Bug 64950 Summary: about doughnutchart
https://bz.apache.org/bugzilla/show_bug.cgi?id=64950

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org