<?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>article Pyramid vs Row type for Custom Palette in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Pyramid-vs-Row-type-for-Custom-Palette/ta-p/1714991</link>
    <description>&lt;P&gt;There are two different palette types that can be used when creating a custom theme. The custom palettes are applied when using the Color By feature for chart in Qlik Sense. The two different available types are &lt;STRONG&gt;Pyramid&lt;/STRONG&gt; and &lt;STRONG&gt;Row&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;The &lt;STRONG&gt;Pyramid&lt;/STRONG&gt; type allows customization of the color palette used based on the number of data members.&lt;BR /&gt;&lt;BR /&gt;Here is an example code snippet for a color palette using &lt;STRONG&gt;Pyramid&lt;/STRONG&gt; as the type:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"palettes": { 
     "data": [ 
        { 
          "name": "First data palette", 
          "translation": "12 colors", 
           "propertyValue": "data-palette-1", 
           "type": "pyramid", 
            "scale": [
               [ "#4477aa" ],
               [ "#4477aa", "#cc6677" ], 
               [ "#4477aa", "#ddcc77", "#cc6677" ], 
               [ "#4477aa", "#117733", "#ddcc77", "#cc6677" ], 
               [ "#332288", "#88ccee", "#117733", "#ddcc77", "#cc6677" ], 
               [ "#332288", "#88ccee", "#117733", "#ddcc77", "#cc6677", "#aa4499" ], 
               [ "#332288", "#44aa99", "#88ccee", "#117733", "#ddcc77", "#cc6677", "#aa4499" ], 
               [ "#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#cc6677", "#aa4499" ], 
               [ "#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#cc6677", "#882255", "#aa4499" ], 
               [ "#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#882255", "#aa4499" ], 
               [ "#332288", "#6699cc", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#882255", "#aa4499" ], 
               [ "#332288", "#6699cc", "#88ccee", "#44aa99", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#aa4466", "#882255", "#aa4499" ]
             ]&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;If there was one data member in the chart, the 1st line would be used. If there were two data members in the chart, the 2nd line of colors would be used and so on and so forth up to 12 data members.&lt;BR /&gt;&lt;BR /&gt;For example, the below pie chart has 5 data members. So it is using row 5 of the above code snippet to assign the colors.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://qlik.my.salesforce.com/servlet/servlet.ImageServer?id=015D0000006A7Gn&amp;amp;oid=00D20000000IGPX&amp;amp;lastMod=1538510738000" border="0" alt="Pyramid" /&gt;&lt;BR /&gt;&lt;BR /&gt;The type of &lt;STRONG&gt;Row&lt;/STRONG&gt;, however, will use the colors listed in order and should there be more data members than assigned colors, the colors will be reused.&lt;BR /&gt;&lt;BR /&gt;Here is an example code snippet for a color palette using &lt;STRONG&gt;Row&lt;/STRONG&gt; as the type:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"name": "Second data palette", 
    "translation": "4 Colors", 
    "propertyValue": "data-palette-2", 
    "type": "row", 
    "scale": [
       "#ff00ff", 
       "#00ff00", 
       "#0000ff", 
       "#000000" 
     ]&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Using the same pie chart but with the 4 color palette, the colors are assigned in the order listed in the code snippet. The pink is used twice because there are 5 data members in the pie chart but only 4 colors in the palette.&lt;BR /&gt;&lt;IMG src="https://qlik.my.salesforce.com/servlet/servlet.ImageServer?id=015D0000006A7Gs&amp;amp;oid=00D20000000IGPX&amp;amp;lastMod=1538510882000" border="0" alt="Row" /&gt;&lt;BR /&gt;&lt;BR /&gt;If instead of a 4 color palette, the 12 colors were used as a&lt;STRONG&gt; Row&lt;/STRONG&gt; type palette, the colors would be assigned in the order listed in the code. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Using the same pie chart example, the colors would be assigned as follows:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 5: navy blue (&lt;/SPAN&gt;&lt;/SPAN&gt;#332288)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 4: the second blue (&lt;/SPAN&gt;&lt;/SPAN&gt;#6699cc)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 3: light blue (&lt;/SPAN&gt;&lt;/SPAN&gt;#88ccee)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 2: teal (&lt;/SPAN&gt;&lt;/SPAN&gt;#44aa99)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 1: green&lt;/SPAN&gt;&lt;/SPAN&gt; (#117733)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;This would result in a very similar color palette of blues and greens and not very much variance in the colors. Therefore, using the pyramid allows you to set more variance in the color scheme based on how many data members are in the chart.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;For more information here about creating Custom Themes, please see: &lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/Extensions/Content/Sense_Extensions/CustomThemes/custom-themes-properties.htm" target="_blank" rel="noopener"&gt;Custom theme JSON properties&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 19:21:58 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2022-05-10T19:21:58Z</dc:date>
    <item>
      <title>Pyramid vs Row type for Custom Palette</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Pyramid-vs-Row-type-for-Custom-Palette/ta-p/1714991</link>
      <description>&lt;P&gt;There are two different palette types that can be used when creating a custom theme. The custom palettes are applied when using the Color By feature for chart in Qlik Sense. The two different available types are &lt;STRONG&gt;Pyramid&lt;/STRONG&gt; and &lt;STRONG&gt;Row&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;The &lt;STRONG&gt;Pyramid&lt;/STRONG&gt; type allows customization of the color palette used based on the number of data members.&lt;BR /&gt;&lt;BR /&gt;Here is an example code snippet for a color palette using &lt;STRONG&gt;Pyramid&lt;/STRONG&gt; as the type:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"palettes": { 
     "data": [ 
        { 
          "name": "First data palette", 
          "translation": "12 colors", 
           "propertyValue": "data-palette-1", 
           "type": "pyramid", 
            "scale": [
               [ "#4477aa" ],
               [ "#4477aa", "#cc6677" ], 
               [ "#4477aa", "#ddcc77", "#cc6677" ], 
               [ "#4477aa", "#117733", "#ddcc77", "#cc6677" ], 
               [ "#332288", "#88ccee", "#117733", "#ddcc77", "#cc6677" ], 
               [ "#332288", "#88ccee", "#117733", "#ddcc77", "#cc6677", "#aa4499" ], 
               [ "#332288", "#44aa99", "#88ccee", "#117733", "#ddcc77", "#cc6677", "#aa4499" ], 
               [ "#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#cc6677", "#aa4499" ], 
               [ "#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#cc6677", "#882255", "#aa4499" ], 
               [ "#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#882255", "#aa4499" ], 
               [ "#332288", "#6699cc", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#882255", "#aa4499" ], 
               [ "#332288", "#6699cc", "#88ccee", "#44aa99", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#aa4466", "#882255", "#aa4499" ]
             ]&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;If there was one data member in the chart, the 1st line would be used. If there were two data members in the chart, the 2nd line of colors would be used and so on and so forth up to 12 data members.&lt;BR /&gt;&lt;BR /&gt;For example, the below pie chart has 5 data members. So it is using row 5 of the above code snippet to assign the colors.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://qlik.my.salesforce.com/servlet/servlet.ImageServer?id=015D0000006A7Gn&amp;amp;oid=00D20000000IGPX&amp;amp;lastMod=1538510738000" border="0" alt="Pyramid" /&gt;&lt;BR /&gt;&lt;BR /&gt;The type of &lt;STRONG&gt;Row&lt;/STRONG&gt;, however, will use the colors listed in order and should there be more data members than assigned colors, the colors will be reused.&lt;BR /&gt;&lt;BR /&gt;Here is an example code snippet for a color palette using &lt;STRONG&gt;Row&lt;/STRONG&gt; as the type:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"name": "Second data palette", 
    "translation": "4 Colors", 
    "propertyValue": "data-palette-2", 
    "type": "row", 
    "scale": [
       "#ff00ff", 
       "#00ff00", 
       "#0000ff", 
       "#000000" 
     ]&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Using the same pie chart but with the 4 color palette, the colors are assigned in the order listed in the code snippet. The pink is used twice because there are 5 data members in the pie chart but only 4 colors in the palette.&lt;BR /&gt;&lt;IMG src="https://qlik.my.salesforce.com/servlet/servlet.ImageServer?id=015D0000006A7Gs&amp;amp;oid=00D20000000IGPX&amp;amp;lastMod=1538510882000" border="0" alt="Row" /&gt;&lt;BR /&gt;&lt;BR /&gt;If instead of a 4 color palette, the 12 colors were used as a&lt;STRONG&gt; Row&lt;/STRONG&gt; type palette, the colors would be assigned in the order listed in the code. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Using the same pie chart example, the colors would be assigned as follows:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 5: navy blue (&lt;/SPAN&gt;&lt;/SPAN&gt;#332288)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 4: the second blue (&lt;/SPAN&gt;&lt;/SPAN&gt;#6699cc)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 3: light blue (&lt;/SPAN&gt;&lt;/SPAN&gt;#88ccee)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 2: teal (&lt;/SPAN&gt;&lt;/SPAN&gt;#44aa99)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Site 1: green&lt;/SPAN&gt;&lt;/SPAN&gt; (#117733)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN class="feedcommenttext"&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;This would result in a very similar color palette of blues and greens and not very much variance in the colors. Therefore, using the pyramid allows you to set more variance in the color scheme based on how many data members are in the chart.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;For more information here about creating Custom Themes, please see: &lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/Extensions/Content/Sense_Extensions/CustomThemes/custom-themes-properties.htm" target="_blank" rel="noopener"&gt;Custom theme JSON properties&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 19:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Pyramid-vs-Row-type-for-Custom-Palette/ta-p/1714991</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-05-10T19:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pyramid vs Row type for Custom Palette</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Pyramid-vs-Row-type-for-Custom-Palette/tac-p/1840614#M4420</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for clarifying the difference between Pyramid and Row type for the palettes.&lt;/P&gt;&lt;P&gt;I consider it a valuable explanation to be added to the QS Help because I looked for the exact explanation in didn't find it in the help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Huberto Pereira Haidemann&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Pyramid-vs-Row-type-for-Custom-Palette/tac-p/1840614#M4420</guid>
      <dc:creator>Huberto</dc:creator>
      <dc:date>2021-09-30T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pyramid vs Row type for Custom Palette</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Pyramid-vs-Row-type-for-Custom-Palette/tac-p/1840799#M4425</link>
      <description>&lt;P&gt;Thank you for the feedback!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 08:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Pyramid-vs-Row-type-for-Custom-Palette/tac-p/1840799#M4425</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-10-01T08:33:47Z</dc:date>
    </item>
  </channel>
</rss>

