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

Is it possible to change colour of bar chart depending if +ve or -ve? (QV v8.5)

Was wondering how to change the color of a bar chart, depending on whether values are positive or negative...?

Noticed within the "Expressions" tab, you can define "Background Color", but not exactly sure how to use this?

Any tips appreciated!

Kind regards,

Rich

1 Solution

Accepted Solutions
Not applicable
Author

See example.

For eache expression put

If(Column(1)>0,green(),red())

View solution in original post

3 Replies
Not applicable
Author

See example.

For eache expression put

If(Column(1)>0,green(),red())

Not applicable
Author

Muito obrigado para isso! exactly what I was looking for, and wasn't sure how to define the "column(1)"

Many thanks!

Kind regards,

Rich

Not applicable
Author

Hello,

Can we have a different color for each bar on the chart,irrespective of the value, means even if the adjacent bars have same value they should have different colors ?

Regards