In Forge UI Kit visualisation components (e.g. BarChart, PieChart, LineChart), the colorPalette prop is documented in the official documentation, but does not appear to affect rendered chart colors. Charts continue to use default colors regardless of the palette supplied. No warnings or errors thrown.
Hi @G114,
I just did a test with the app I use for reference for charts (link to app) and everything looks correct to me.
The colorPalette can be defined in two different ways:
as an array of color strings
an array of objects with key and value properties to map specific data
When I define a color palette in the usage.jsx file, I can see the colors I defined in the chart:
As a note, before running npm install I had to delete the package-lock.json file because of some dependencies to internal package manager. That has been regenerated from the subsequent npm install. I’ve committed that change if you want to pull the repository.
I synced the latest changes, but I’m still getting the same behaviour. The project is the same. Only the manifest.yml file is different, as I’m using Bitbucket instead of Jira.