Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Change Chart Background Colour Based on Variable Value

Hi All,

How do I do this. I want to change a single bar chart colour when the value of that bar chart is equal to a variable value. The variable value is an expression!

Please help

Thanks,

Byron

Labels (1)
5 Replies
Not applicable
Author

By the way, this is the expression and it does not work, =if([Monthly Cost]='$(vChart1MaxString)',red(),green())

Not applicable
Author

Hi,

you can change bar color by changing expresion backgroung color conditionally.

see attachement.

Niranjan M.

jagan
Partner - Champion III
Partner - Champion III

Hi,

PFA file for solution.

Regards,

Jagan.

Not applicable
Author

Hi Jagan,

Please could you take a screen shot. Unfortunately I'm using a personal edition now.

@Niranjan, yes that works if I explicitly define the value, but if I use a variable where the value is exactly the same, it does not work. I want to define the condition dynamically

Thanks,

Byron

jagan
Partner - Champion III
Partner - Champion III

Hi,

PFA screenshot.

Regards,

Jagan.