Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

kothakas
New Contributor III

Custom colors in Area Map

Hi,

I am using an Area Map in my application and the appearance section has a few color schemes to use. Is it possible to have custom colors to choose from here? Requirement is to have color range from Green to Red to indicate the level of risk in an entity.

Thanks!

Point Layer Color Setting.PNG

Tags (2)
1 Solution

Accepted Solutions
Employee
Employee

Re: Custom colors in Area Map

Hello Sandeep,

You may want to look at the Colormix1 and Colormix2 functions.

Change "By Measure" to "By Expression" in the dropdown menu.

In the expression window, type:

=colormix1(rank(total sum(Your_Field))/NoOfRows(TOTAL),rgb(0,255,0),rgb(255,0,0))

The first parameter in Colormix1 and Colormix2 must be a value between 0 and 1, so you'll need to reduce your expression to a range between those values. 


Here is a good write-up on setting a custom color range and setting a theme for your apps.

Qlik Sense Color Range Theme Approach

2 Replies
Employee
Employee

Re: Custom colors in Area Map

Hello Sandeep,

You may want to look at the Colormix1 and Colormix2 functions.

Change "By Measure" to "By Expression" in the dropdown menu.

In the expression window, type:

=colormix1(rank(total sum(Your_Field))/NoOfRows(TOTAL),rgb(0,255,0),rgb(255,0,0))

The first parameter in Colormix1 and Colormix2 must be a value between 0 and 1, so you'll need to reduce your expression to a range between those values. 


Here is a good write-up on setting a custom color range and setting a theme for your apps.

Qlik Sense Color Range Theme Approach

kothakas
New Contributor III

Re: Custom colors in Area Map

Thank you David!

Community Browser