Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Save the Date: QlikWorld Online, June 24-25, 2020. Free global virtual event for data integration and data analytic gurus. Register Today
Highlighted
New 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
Highlighted
Employee
Employee

Re: Can someone please explain how the pyramid type colour palette works

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
Highlighted
Employee
Employee

Re: Can someone please explain how the pyramid type colour palette works

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