<?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: Continuting colors on multiple graphs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261773#M1191663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming entry is a dimension of your chart this should work, otherwise R, G and B might have multiple values for each datapoint in the chart and you will get rgb(NULL,NULL,NULL) which is black.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 13:29:34 GMT</pubDate>
    <dc:creator>kji</dc:creator>
    <dc:date>2011-07-07T13:29:34Z</dc:date>
    <item>
      <title>Continuting colors on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261769#M1191659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a question regarding colors. At the moment i have two bar graphs running. The first one, for example, uses a base and calculates the number of individual entries. (A,B,C,D). The second one contains the base, with a index number next to it, regarding an issue (A1, A2, B1, B2, B3, C1, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is: would there be a way to sync colors between the two graphs? For example, on the first bar graph, the bar "A" is Red, "B" is Blue, "C" is green, and making the second graph reflect that such as "A1" is Red, "A2" is Red, "B1" is blue, and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview also recognizes the two charts with listboxes, so if i select "A" from a list box, "A1" and "A2" both come up in the graphs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 20:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261769#M1191659</guid>
      <dc:creator />
      <dc:date>2011-07-06T20:45:46Z</dc:date>
    </item>
    <item>
      <title>Continuting colors on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261770#M1191660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your chart properties, click on the + next to your expression. Select 'Background Color' and on the right open the expression editor under definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From there, its just an if statement, if(entry = A, red, if(entry = B, blue,if(entry = C, green,if(entry = D, yellow))))&lt;/P&gt;&lt;P&gt;There are several ways you can set the color codes in the above statement I tend to use rgb(0,0,0) type format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy &amp;amp; paste the final if statement to any chart you want to have the same color scheme for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 21:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261770#M1191660</guid>
      <dc:creator />
      <dc:date>2011-07-06T21:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Continuting colors on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261771#M1191661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, map yourself some colors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Colors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;entry, R, G, B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;A,255,100,100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;B,100,100,255&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;C,100,255,100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;D,200,200,100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in the color expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=rgb(R,G,B)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though you'll probably want this so that you get default colors when adding new values that you haven't mapped:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=if(R,rgb(R,G,B))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 23:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261771#M1191661</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-06T23:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Continuting colors on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261772#M1191662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for getting back to me...i tried your method, and for some reason, all of the bars come up as jet black (rgb(0,0,0)). I cant seem to figure out why this is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my script, I added &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colors:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;entry, R, G, B&lt;BR /&gt;AC,255,100,100&lt;BR /&gt;AM,100,255,100&lt;BR /&gt;BC,100,100,255&lt;BR /&gt;DP,100,100,100&lt;BR /&gt;PE,200,200,100&lt;BR /&gt;PS,200,100,200&lt;BR /&gt;RM,100,200,200&lt;BR /&gt;SO,0,0,200&lt;BR /&gt;SS,0,200,0&lt;BR /&gt;TM,200,0,0&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the background color expression, i added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rgb(R,G,B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason, doing this turned every entry jet black. Any ideas on what might be the fix for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 13:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261772#M1191662</guid>
      <dc:creator />
      <dc:date>2011-07-07T13:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Continuting colors on multiple graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261773#M1191663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming entry is a dimension of your chart this should work, otherwise R, G and B might have multiple values for each datapoint in the chart and you will get rgb(NULL,NULL,NULL) which is black.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 13:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Continuting-colors-on-multiple-graphs/m-p/261773#M1191663</guid>
      <dc:creator>kji</dc:creator>
      <dc:date>2011-07-07T13:29:34Z</dc:date>
    </item>
  </channel>
</rss>

