<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Color Palette not working as expected. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Color-Palette-not-working-as-expected/m-p/4127028#M55041</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;In several custom visuals we created, we are using the color palette provided by the&amp;nbsp;&lt;SPAN&gt;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&amp;nbsp;"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.&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Jelle.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 13:26:50 GMT</pubDate>
    <dc:creator>jagvdelsen</dc:creator>
    <dc:date>2024-08-30T13:26:50Z</dc:date>
    <item>
      <title>Color Palette not working as expected.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Color-Palette-not-working-as-expected/m-p/4127028#M55041</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;In several custom visuals we created, we are using the color palette provided by the&amp;nbsp;&lt;SPAN&gt;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&amp;nbsp;"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.&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Jelle.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 13:26:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Color-Palette-not-working-as-expected/m-p/4127028#M55041</guid>
      <dc:creator>jagvdelsen</dc:creator>
      <dc:date>2024-08-30T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Color Palette not working as expected.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Color-Palette-not-working-as-expected/m-p/4128886#M55062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="449210" data-lia-user-login="jagvdelsen" class="lia-mention lia-mention-user"&gt;jagvdelsen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the related document, you can view this content:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Synchronize-color-palette-between-Custom-amp-Native-visuals/m-p/3658691" target="_blank"&gt;Re: Synchronize color palette between Custom &amp;amp; Nat... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PowerBi-Projects/PowerBI-visuals/blob/master/Tutorial/ColorPalette.md" target="_blank"&gt;PowerBI-visuals/Tutorial/ColorPalette.md at master · PowerBi-Projects/PowerBI-visuals · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/add-colors-power-bi-visual" target="_blank"&gt;Add colors to your Power BI custom visuals - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 05:38:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Color-Palette-not-working-as-expected/m-p/4128886#M55062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-02T05:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Color Palette not working as expected.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Color-Palette-not-working-as-expected/m-p/4129579#M55073</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. I have read and understand the links you've sent and we indeed use the&amp;nbsp;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?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 13:29:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Color-Palette-not-working-as-expected/m-p/4129579#M55073</guid>
      <dc:creator>jagvdelsen</dc:creator>
      <dc:date>2024-09-02T13:29:10Z</dc:date>
    </item>
  </channel>
</rss>

