Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
JonathanKelly
Contributor III
Contributor III

Gradient colour by expression

I have a table of in the chart section that contains calculations, the results of which range from 0 upward. Is there a way to colour the values so that the background progressively gets darker the higher the number? 

If I need to put an upper and lower limit that is fine but is there a way to colour a background with a gradient?

I would assume the use of the rank function but I do not know how to input this within a RGB or ARGB function. 

Labels (4)
1 Solution

Accepted Solutions
MatheusC
Specialist
Specialist

Hi, @JonathanKelly 

I created an article on how to make a Gradient using the colormix2() function, see if it is useful for you.

https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/tac...

Att, Matheus


Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

2 Replies
Rohan
Specialist
Specialist

Hi Jonathan,

Refer the below link,

https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/Color...

There you have Colormix1 & colormix2 functions. Please note that expressions used to define the colour should range within 0 to1 & -1 to 1 respectively for the 2 functions.

Regards,

Rohan.

MatheusC
Specialist
Specialist

Hi, @JonathanKelly 

I created an article on how to make a Gradient using the colormix2() function, see if it is useful for you.

https://community.qlik.com/t5/Member-Articles/Gradient-color-palette-with-the-ColorMix2-function/tac...

Att, Matheus


Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!