Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
cabbagetreecustard
Contributor
Contributor

Can someone please explain how the pyramid type colour palette works

From this page there is an example theme that defines different palettes https://help.qlik.com/en-US/sense-developer/November2018/Subsystems/Extensions/Content/Sense_Extensi...

I would like the understand what the reason is to use a palette with type pyramid and how this differs from the type row. Why are the colours in a different order in each line? The part of the theme I am talking about (from the page above) is given below.

 

{
          "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" ]
          ]
        }
Labels (3)
1 Solution

Accepted Solutions
mek
Employee
Employee

Hi,

The reasoning behind the pyramid is to increase distinction between values. It works in such a way that when you have e.g. 2 data rows you would get the palette that has two colors in it, which would typically be more distinct compared to having two neighbours from a set of 12 colors .

View solution in original post

1 Reply
mek
Employee
Employee

Hi,

The reasoning behind the pyramid is to increase distinction between values. It works in such a way that when you have e.g. 2 data rows you would get the palette that has two colors in it, which would typically be more distinct compared to having two neighbours from a set of 12 colors .