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

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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

380 views 21 10
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