Forge Pie/Donut charts don’t guarantee slice order or color consistency

While using Forge UI Kit PieChart and DonutChart in Bitbucket repoCodeOverviewPanel, I noticed that:

  • Slice rendering order is not guaranteed – the visual order does not reliably follow the input data array, and there is no sort, order, or index‑based prop to control it.

  • Colors are not fully reliable – even when using colorAccessor + colorPalette, slices may render with unexpected or default colors.

As an example:

When Pending count > Completed count

When Completed count > Pending count

This appears to be a limitation of Forge’s abstraction over the underlying charting library: slice ordering and color assignment are handled internally, not strictly based on the provided data order or palette.

Because of this, it’s currently not possible to guarantee:

  • consistent slice positions across charts

  • consistent severity/status colors (e.g. blocker/high/medium/low)

Feature request:
It would be very helpful to have explicit support for:

  • deterministic slice ordering (e.g. sort, order, or angle control)

  • guaranteed color mapping when colorPalette is provided

Has Atlassian confirmed whether this behavior is expected or tracked as a limitation/bug?

Thanks!

1 Like

@CaterinaCurti Tagging in case this is something you could help with. I encountered an issue related to this last January, too: colorPalette prop in UI Kit charts is not working

Glad if you could assist. Thanks