<?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: Colors for scatter chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Colors-for-scatter-chart/m-p/512423#M191449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was thinking of putting some variable and changing within the loop (that I dont have yet).&lt;BR /&gt;But &lt;STRONG&gt;nice tips always welcome &lt;/STRONG&gt;and it's perfect for now.&lt;BR /&gt;Thank you Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 07:29:41 GMT</pubDate>
    <dc:creator>karolina_</dc:creator>
    <dc:date>2013-11-13T07:29:41Z</dc:date>
    <item>
      <title>Colors for scatter chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colors-for-scatter-chart/m-p/512421#M191447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to color bubbles on scatter charts by metric chosen by user for example continent,country&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below there is a code to color first 10 that in put in expression -&amp;gt; background color:&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(1)))',rgb(255,0,0),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(2)))',rgb(128,0,0),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(3)))',rgb(0,128,0),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(4)))',rgb(0,255,0),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(5)))',rgb(128,0,128),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(6)))',rgb(155,0,64),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(7)))',rgb(255,0,255),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(8)))',rgb(0,64,128),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(9)))',rgb(128,64,0),&lt;/P&gt;&lt;P&gt;if($(vDataName)='$(=$(vColorSelection(10)))',rgb(64,0,64)&lt;/P&gt;&lt;P&gt;,rgb(192,192,192))&lt;/P&gt;&lt;P&gt;)))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;vColorSelection -&amp;gt; SubField(concat(DISTINCT $(vDataName),'|'),'|',($1))&lt;/P&gt;&lt;P&gt;$(vDataName) -&amp;gt; Field Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the metrics has just 4 values some over 100. I would like to put it in the loop from 1 to GetPossibleCount($(vDataName)).&lt;/P&gt;&lt;P&gt;How can I do the loop in the chart? [I tried valueloop() but i had other dimension and it's not working correctly]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 11:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colors-for-scatter-chart/m-p/512421#M191447</guid>
      <dc:creator>karolina_</dc:creator>
      <dc:date>2013-11-12T11:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Colors for scatter chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colors-for-scatter-chart/m-p/512422#M191448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Not a solution, just an idea that may be helpful.)&lt;/P&gt;&lt;P&gt;It is easier to modify the color palette according your color list, and use color(n) function instead of rgb().&amp;nbsp; It easy to loop like this (10 colors in this example):&lt;/P&gt;&lt;P&gt;color(mod(RowNo(),10)+1)&lt;/P&gt;&lt;P&gt;There is a limit though, 18 colors in the palette.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colors-for-scatter-chart/m-p/512422#M191448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-12T21:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Colors for scatter chart</title>
      <link>https://community.qlik.com/t5/QlikView/Colors-for-scatter-chart/m-p/512423#M191449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was thinking of putting some variable and changing within the loop (that I dont have yet).&lt;BR /&gt;But &lt;STRONG&gt;nice tips always welcome &lt;/STRONG&gt;and it's perfect for now.&lt;BR /&gt;Thank you Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 07:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colors-for-scatter-chart/m-p/512423#M191449</guid>
      <dc:creator>karolina_</dc:creator>
      <dc:date>2013-11-13T07:29:41Z</dc:date>
    </item>
  </channel>
</rss>

