Forum Discussion
Color Palette not working as expected.
Hi jagvdelsen ,
This is the related document, you can view this content:
Re: Synchronize color palette between Custom & Nat... - Microsoft Fabric Community
PowerBI-visuals/Tutorial/ColorPalette.md at master · PowerBi-Projects/PowerBI-visuals · GitHub
Add colors to your Power BI custom visuals - Power BI | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous,
Thanks for your reply. I have read and understand the links you've sent and we indeed use the this.host.colorPalette.getColor(category) method to retrieve the colors. The problem is that the color palette is 'reset' between two update-calls (during the initial load of the report) which results in the fact that when clearing the filter, the first color will be handed out again as if the colors were not (already) assigned. Is there anyone available who I could contact to explain the problem to or who could help me with this problem?
Thanks!