<?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(n) function showing incorrect colors / Is there a function to get theme palette colors ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Color-n-function-showing-incorrect-colors-Is-there-a-function-to/m-p/1895551#M73892</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We've come across a possible bug while playing around with custom themes, where we hoped to use Color(n) function to get certain colors from the custom palette set in a custom theme. The function Color(n) does not use colors from the custom theme or any other theme or pallete in fact.&lt;/P&gt;
&lt;P&gt;On the Qlik website it describes the function as:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;"Color()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is used in expressions to return the color representation of color number n in the &lt;STRONG&gt;chart palette shown in the chart properties&lt;/STRONG&gt;..."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-kubernetes/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFunctions/color-functions-charts.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/November2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFunctions/color-functions-charts.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So I'm asuming this could be a bug, or a forgotten function from QlikView.&lt;/P&gt;
&lt;P&gt;The colors which you can get out of the function seem to match default colors from QlikView. In the screenshot we've put colors from QS Classic theme, QS Color(n) function and QV Default colors next to eachother to compare.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianMolnar_1-1645456898959.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72739i883F7433E67F97CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianMolnar_1-1645456898959.png" alt="AdrianMolnar_1-1645456898959.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It would be very useful to have the fuction to react to the theme palette colors, is there anyother way to get colors out of the palette via function / expression?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Adrián Molnár&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 15:34:03 GMT</pubDate>
    <dc:creator>Adrian-Molnar</dc:creator>
    <dc:date>2022-02-21T15:34:03Z</dc:date>
    <item>
      <title>Color(n) function showing incorrect colors / Is there a function to get theme palette colors ?</title>
      <link>https://community.qlik.com/t5/App-Development/Color-n-function-showing-incorrect-colors-Is-there-a-function-to/m-p/1895551#M73892</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We've come across a possible bug while playing around with custom themes, where we hoped to use Color(n) function to get certain colors from the custom palette set in a custom theme. The function Color(n) does not use colors from the custom theme or any other theme or pallete in fact.&lt;/P&gt;
&lt;P&gt;On the Qlik website it describes the function as:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;"Color()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is used in expressions to return the color representation of color number n in the &lt;STRONG&gt;chart palette shown in the chart properties&lt;/STRONG&gt;..."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-kubernetes/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFunctions/color-functions-charts.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/November2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFunctions/color-functions-charts.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So I'm asuming this could be a bug, or a forgotten function from QlikView.&lt;/P&gt;
&lt;P&gt;The colors which you can get out of the function seem to match default colors from QlikView. In the screenshot we've put colors from QS Classic theme, QS Color(n) function and QV Default colors next to eachother to compare.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianMolnar_1-1645456898959.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72739i883F7433E67F97CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianMolnar_1-1645456898959.png" alt="AdrianMolnar_1-1645456898959.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It would be very useful to have the fuction to react to the theme palette colors, is there anyother way to get colors out of the palette via function / expression?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Adrián Molnár&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 15:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-n-function-showing-incorrect-colors-Is-there-a-function-to/m-p/1895551#M73892</guid>
      <dc:creator>Adrian-Molnar</dc:creator>
      <dc:date>2022-02-21T15:34:03Z</dc:date>
    </item>
  </channel>
</rss>

