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

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

This widget could not be displayed.

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

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

280 views 2 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you