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: 
Not applicable

Change color of a line graph based on value of Expression?

I've been able to change the style of a line graph based on the value of an expression, but haven't found anything regarding changing the color. Does anyone know of any tags to use, or other ways to do this?

3 Replies
pover
Luminary Alumni
Luminary Alumni

Look up color functions in QlikView help. There are functions like red(), blue(), etc. but the most powerful is the function rgb(). These functions are placed in the Background Color expression of the chart expression.

Regards.

prieper
Master II
Master II

Open the small + and enter the conditions for the colour under "Background", like

IF(COLUMN(1) <10, RED(), GREEN())


Colours might also be coded via the RGB-function.

HTH
Peter

Not applicable
Author

hello,

I am using these functions but the red() function is actually inserting a text rgb(128,0,0) in the cell and not actually coloring the cell red. How can i do it?

Arif