<?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 Consistent colors across charts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333741#M29178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like a simple problem but I am having trouble with it.&amp;nbsp; I want similar measures to have similar colors across two charts in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-04-27_11-20-00.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161519_2017-04-27_11-20-00.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried c&lt;SPAN style="font-size: 10pt;"&gt;hanging the order of the series in the bar chart. I have "persistent colors" checked in the pie chart.&amp;nbsp; Nothing seems to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;To make matters even more confounding I did some sample data for the last 4 months to post here and that dataset seemed to work the way it should.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hoping someone can shed some light here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;TIA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Apr 2017 16:26:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-27T16:26:03Z</dc:date>
    <item>
      <title>Consistent colors across charts</title>
      <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333741#M29178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like a simple problem but I am having trouble with it.&amp;nbsp; I want similar measures to have similar colors across two charts in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-04-27_11-20-00.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161519_2017-04-27_11-20-00.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried c&lt;SPAN style="font-size: 10pt;"&gt;hanging the order of the series in the bar chart. I have "persistent colors" checked in the pie chart.&amp;nbsp; Nothing seems to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;To make matters even more confounding I did some sample data for the last 4 months to post here and that dataset seemed to work the way it should.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hoping someone can shed some light here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;TIA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 16:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333741#M29178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T16:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Consistent colors across charts</title>
      <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333742#M29179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can force Qlik to assign specific colors by choosing Appearance --&amp;gt; Colors and Legend --&amp;gt; By Expression and then entering a formula in the "Expression" bar. The formula can be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(measure='&amp;lt;2', 'blue',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(measure='2-12', 'red',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(measure='12-24', 'green',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(measure='&amp;gt;24', 'yellow'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use hexadecimal colors. For example, in the code above - you can replace 'yellow' with '#daa520'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you follow the same procedure in all the charts you want to be consistent with each other, your issue should be solved! Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy Qlik-ing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 19:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333742#M29179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T19:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Consistent colors across charts</title>
      <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333743#M29180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'&amp;lt;=2', '2-12', etc. are dimensions, not measures and I have tried choosing custom colors in the pie chart -&amp;gt; 'By Dimension and entering a formula like you have here and it has no effect on the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-04-27_15-22-01.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161521_2017-04-27_15-22-01.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Here is the expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(hours_eeg_upload_to_report &amp;lt;=2, blue()&lt;/P&gt;&lt;P&gt;, if(hours_eeg_upload_to_report &amp;gt;2 AND hours_eeg_upload_to_report &amp;lt;=12, red()&lt;/P&gt;&lt;P&gt;, if(hours_eeg_upload_to_report &amp;gt;12 AND hours_eeg_upload_to_report &amp;lt;=24, Yellow()&lt;/P&gt;&lt;P&gt;, Green())))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 20:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333743#M29180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T20:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Consistent colors across charts</title>
      <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333744#M29181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Can you choose "By expression" instead of "By dimension" and see if it works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Can you show me what you have as your dimension and measure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 20:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333744#M29181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T20:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Consistent colors across charts</title>
      <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333745#M29182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. All the slices are green&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For the pie chart:&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;if(hours_eeg_upload_to_report &amp;lt;=2, '&amp;lt;=2'&lt;/P&gt;&lt;P&gt;, if(hours_eeg_upload_to_report &amp;gt;2 AND hours_eeg_upload_to_report &amp;lt;=12, '2-12'&lt;/P&gt;&lt;P&gt;, if(hours_eeg_upload_to_report &amp;gt;12 AND hours_eeg_upload_to_report &amp;lt;=24, '12-24'&lt;/P&gt;&lt;P&gt;, '24+')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;Count(myKey)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 20:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333745#M29182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T20:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Consistent colors across charts</title>
      <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333746#M29183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the *.qvf with the full data set.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 21:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333746#M29183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T21:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Consistent colors across charts</title>
      <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333747#M29184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to create a new variable in the Data Load Editor for the different categories. Let us say you create a new variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(hours_eeg_upload_to_report &amp;lt;=2, '&amp;lt;=2'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, if(hours_eeg_upload_to_report &amp;gt;2 AND hours_eeg_upload_to_report &amp;lt;=12, '2-12'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, if(hours_eeg_upload_to_report &amp;gt;12 AND hours_eeg_upload_to_report &amp;lt;=24, '12-24'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, '24+'))) as hours_eeg_upload_to_report_categories&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-Now in the Front End, you can call '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;hours_eeg_upload_to_report_categories&lt;/SPAN&gt;' as your dimension.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-Your measure remains the same.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-In the Colors and Legend --&amp;gt; By Expression, use this following formula:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;hours_eeg_upload_to_report_categories&lt;/SPAN&gt; = '&amp;lt;=2', 'blue',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;hours_eeg_upload_to_report_categories =&lt;/SPAN&gt; '2-12', 'red',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;hours_eeg_upload_to_report_categories&lt;/SPAN&gt; = '12-24', 'yellow', 'green')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 21:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333747#M29184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T21:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Consistent colors across charts</title>
      <link>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333748#M29185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet, That worked!&amp;nbsp; &lt;/P&gt;&lt;P&gt;The final expression turned out to be:&lt;/P&gt;&lt;P&gt;if(hours_eeg_upload_to_report_categories = '&amp;lt;=2', '#4476A9' &lt;/P&gt;&lt;P&gt;, if(hours_eeg_upload_to_report_categories = '2-12', '#117833' &lt;/P&gt;&lt;P&gt;, if(hours_eeg_upload_to_report_categories = '12-24', '#DDCB75' &lt;/P&gt;&lt;P&gt;, '#CB6676')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This site was helpful in getting the color codes&lt;/P&gt;&lt;P&gt;&lt;A href="http://html-color-codes.info/colors-from-image/" title="http://html-color-codes.info/colors-from-image/"&gt;Get Colors from Image &lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same expression in the stacked bar chart but it did not work.&amp;nbsp; I was forced to match the colors in the bar chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 22:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Consistent-colors-across-charts/m-p/1333748#M29185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T22:16:40Z</dc:date>
    </item>
  </channel>
</rss>

