<?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 Re: Node color expression in Sankey Diagram (Qlik Visualization Bundle) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Node-color-expression-in-Sankey-Diagram-Qlik-Visualization/m-p/1978710#M80786</link>
    <description>&lt;P&gt;Ah, crap. This is all I've found when searching for the same issue, and so it seems like it's just a bug. If I do:&lt;BR /&gt;&lt;BR /&gt;IF(Dimension = 1, color('#hexcodeA'), if(Dimension = 2, color('#hexcodeB'))&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Then I just get all of it coming out as hexcodeA in colour.&lt;BR /&gt;&lt;BR /&gt;If I swap the two palettes over, then it all comes out as hexcodeB. BUT, if I use, say, Red(), then it works and you see two colours.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It seems to just be a bug with using multiple hex colour values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually typing this out gives me an idea, maybe I can try converting to RGB and using that? Maybe it's just the actual HEX values that are breaking. Will give it a go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;/EDIT: Yeah. Using rgb(x,y,z) instead of color('#hexcode') fixes it.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 13:29:13 GMT</pubDate>
    <dc:creator>rnorris</dc:creator>
    <dc:date>2022-09-08T13:29:13Z</dc:date>
    <item>
      <title>Node color expression in Sankey Diagram (Qlik Visualization Bundle)</title>
      <link>https://community.qlik.com/t5/App-Development/Node-color-expression-in-Sankey-Diagram-Qlik-Visualization/m-p/1598159#M44225</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to set node's color automatically instead of setting a fixed color for each dimension value.&lt;/P&gt;&lt;P&gt;I found a trick using this :&lt;/P&gt;&lt;P&gt;Color(round(255*rand( ),1))&lt;/P&gt;&lt;P&gt;But does anyone ever tried to set color by measure value ?&lt;/P&gt;&lt;P&gt;I tried this in Node Color exp :&lt;/P&gt;&lt;P&gt;if( MyMeasure&amp;gt;500,Red(),Green())&lt;/P&gt;&lt;P&gt;But the value displayed differs from the value measured in Node color :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AB = 511, so is &amp;gt; 500, but still green colored" style="width: 647px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14762i313FF2C7E89F3A2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikk.png" alt="AB = 511, so is &amp;gt; 500, but still green colored" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;AB = 511, so is &amp;gt; 500, but still green colored&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but when I change my Node Color Exp to :&lt;/P&gt;&lt;P&gt;if( MyMeasure=75,Red(),Green())&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AB is now Red.." style="width: 652px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14764i06A7DD3DB67820DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikk2.png" alt="AB is now Red.." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;AB is now Red..&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My goal is to have a gradient Color by measure like we can have in all other elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Node-color-expression-in-Sankey-Diagram-Qlik-Visualization/m-p/1598159#M44225</guid>
      <dc:creator>Julien_OF</dc:creator>
      <dc:date>2024-11-16T05:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Node color expression in Sankey Diagram (Qlik Visualization Bundle)</title>
      <link>https://community.qlik.com/t5/App-Development/Node-color-expression-in-Sankey-Diagram-Qlik-Visualization/m-p/1978710#M80786</link>
      <description>&lt;P&gt;Ah, crap. This is all I've found when searching for the same issue, and so it seems like it's just a bug. If I do:&lt;BR /&gt;&lt;BR /&gt;IF(Dimension = 1, color('#hexcodeA'), if(Dimension = 2, color('#hexcodeB'))&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Then I just get all of it coming out as hexcodeA in colour.&lt;BR /&gt;&lt;BR /&gt;If I swap the two palettes over, then it all comes out as hexcodeB. BUT, if I use, say, Red(), then it works and you see two colours.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It seems to just be a bug with using multiple hex colour values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually typing this out gives me an idea, maybe I can try converting to RGB and using that? Maybe it's just the actual HEX values that are breaking. Will give it a go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;/EDIT: Yeah. Using rgb(x,y,z) instead of color('#hexcode') fixes it.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 13:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Node-color-expression-in-Sankey-Diagram-Qlik-Visualization/m-p/1978710#M80786</guid>
      <dc:creator>rnorris</dc:creator>
      <dc:date>2022-09-08T13:29:13Z</dc:date>
    </item>
  </channel>
</rss>

