Pie chart throws error when there are more colours than data series

Wendy Fergusson November 4, 2012

I'm running Confluence 3.5.13. I have a pie chart which graphs a dynamic set of data, which contains up to 4 data series. The color parameter specifies four colour values. When the dataset includes fewer than 4 data series the macro throws a "java.lang.ClassCastException" error.

Eg.

{chart:type=pie|dataOrientation=vertical|colors=maroon,blue,yellow,cyan}
|| Priority || Num Defects ||
| 2 | 1 |
| 3 | 1 |
{chart}

Is this a known issue? Is it going to be fixed?

The problem also exists on Confluence 4.3.2, the error shows as "java.lang.String cannot be cast to java.lang.Integer"

2 answers

0 votes
Wendy Fergusson December 17, 2012

Looks like that's the only way I'll get any help with this - opened https://jira.atlassian.com/browse/CONF-27584.

0 votes
Luzia Mendes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2012

You should report that at jira.atlassian.com, on Confluence project. It seems a bug.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events