Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

1 Solution

Accepted Solutions
David_Capan
Employee
Employee

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

View solution in original post

2 Replies
David_Capan
Employee
Employee

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

Anonymous
Not applicable
Author

Thank you David!