<?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 How are colours assigned on a line chart when 'Color by dimension' selected? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2024934#M84530</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Can anyone explain to me how the colours are assigned on a line chart when 'Colour by dimension' is selected?&amp;nbsp; I have seen in other posts that it is done by load order, but this does not seem to completely explain it.&lt;/P&gt;
&lt;P&gt;Below, you can see a line chart and a table.&amp;nbsp; The table shows the dimension I have selected to colour by (called Series) and the minimum sequence numbers (RowNo() used in load script) and minimum record numbers (the order of which appears to be the same).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have chosen the According to the 100 colors option&amp;nbsp; (see enlarged version below) and the Peristent colors checkbox is automatically checked and cannot be unchecked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbartley_1-1673526593772.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97883i93AA0985C04B8518/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rbartley_1-1673526593772.png" alt="rbartley_1-1673526593772.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As such, I would expect 'UK up to 01/01/2020 - Young bulls' to be coloured green, 'France - Young bulls' to be pink,&amp;nbsp;'Netherlands - Young bulls' to be red, 'Luxembourg - Young bulls' to be blue, etc. However, this is not the case.&amp;nbsp; Instead, France is a dark brown colour,&amp;nbsp; Luxembourg is a light pastel pink, Netherlands is a tan colour and the UK is not shown at all since the chart is restricted to the last 12 weeks.&amp;nbsp; In addition, the colours change if I reduce the number of selected countries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbartley_0-1673526318021.png" style="width: 924px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97882i0E695BAE7401C0AA/image-dimensions/924x313?v=v2" width="924" height="313" role="button" title="rbartley_0-1673526318021.png" alt="rbartley_0-1673526318021.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 12:45:57 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2023-01-12T12:45:57Z</dc:date>
    <item>
      <title>How are colours assigned on a line chart when 'Color by dimension' selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2024934#M84530</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Can anyone explain to me how the colours are assigned on a line chart when 'Colour by dimension' is selected?&amp;nbsp; I have seen in other posts that it is done by load order, but this does not seem to completely explain it.&lt;/P&gt;
&lt;P&gt;Below, you can see a line chart and a table.&amp;nbsp; The table shows the dimension I have selected to colour by (called Series) and the minimum sequence numbers (RowNo() used in load script) and minimum record numbers (the order of which appears to be the same).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have chosen the According to the 100 colors option&amp;nbsp; (see enlarged version below) and the Peristent colors checkbox is automatically checked and cannot be unchecked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbartley_1-1673526593772.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97883i93AA0985C04B8518/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rbartley_1-1673526593772.png" alt="rbartley_1-1673526593772.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As such, I would expect 'UK up to 01/01/2020 - Young bulls' to be coloured green, 'France - Young bulls' to be pink,&amp;nbsp;'Netherlands - Young bulls' to be red, 'Luxembourg - Young bulls' to be blue, etc. However, this is not the case.&amp;nbsp; Instead, France is a dark brown colour,&amp;nbsp; Luxembourg is a light pastel pink, Netherlands is a tan colour and the UK is not shown at all since the chart is restricted to the last 12 weeks.&amp;nbsp; In addition, the colours change if I reduce the number of selected countries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbartley_0-1673526318021.png" style="width: 924px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97882i0E695BAE7401C0AA/image-dimensions/924x313?v=v2" width="924" height="313" role="button" title="rbartley_0-1673526318021.png" alt="rbartley_0-1673526318021.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 12:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2024934#M84530</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2023-01-12T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How are colours assigned on a line chart when 'Color by dimension' selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2025801#M84584</link>
      <description>&lt;P&gt;Hi, if persistent colors is checked the values ar assigned in load order, that counts when the values were loaded while reloading the app. The color of the dimension should not change with selections so maybe ther is something behind this, I will need a sample to check.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 10:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2025801#M84584</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2023-01-14T10:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: How are colours assigned on a line chart when 'Color by dimension' selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2026034#M84597</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply, I've attached the qvf below.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 09:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2026034#M84597</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2023-01-16T09:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: How are colours assigned on a line chart when 'Color by dimension' selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2026088#M84602</link>
      <description>&lt;P&gt;Hi, the chart is using the series dimension, and this is a calculated dimension. Persistent colors are assigned to values loaded in script, try creating the SERIES field in script using the same condition:&amp;nbsp;MEMBER_STATE_NAME &amp;amp; ' - ' &amp;amp; DESCRIPTION_EN, this way each value will have the same color.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 10:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2026088#M84602</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2023-01-16T10:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How are colours assigned on a line chart when 'Color by dimension' selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2026218#M84605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your reply.&amp;nbsp; I created a field in the load script as you said, and this now behaves as expected.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 14:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-are-colours-assigned-on-a-line-chart-when-Color-by-dimension/m-p/2026218#M84605</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2023-01-16T14:52:17Z</dc:date>
    </item>
  </channel>
</rss>

