Forum Discussion

jagvdelsen's avatar
jagvdelsen
Frequent Visitor
1 year ago

Color Palette not working as expected.

Hi,

In several custom visuals we created, we are using the color palette provided by the IVisualHost to assign colors to categorical item. We run into a problem that in case a filter is applied, the initial colors that were assigned to a particular categorical item will shift in case the filter get's removed. This of course is unwanted behavior since the colors that were initially 'reserved' by the palette for a particular item get re-assigned. So for example: I have a "region" category mapped in my report having the values: "east", "west", "north", "south". I apply a filter by filtering out "north" and I save my report. When reopening the report, "east", "west" and "south" will get the first 3 colors of the palette (which is the expected behavior). When clearing the filter I would like to ensure that "east", "west" and "south" would still have the colors they got initially assigned, but since I retrieve new Data, the color palette seems to be 'reset' and the previous assigned colors will be handed out as being available palette colors.

Even in other situations I would like a particular color to be assigned to a particular item (and I don't want this to change). Is there any way to achieve this without having to hold an internal administrattion ourselves?

Thanks in advance!
Jelle.

2 Replies