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: 
eromiyasimon
Creator II
Creator II

Gradient color in legend or Dual color in Legend

In this screenshot i have show the bar chart values in red and green using expression properties condition but i cannot display the legend in two colors or in two gradient.

Is there any possible way to show like that

Attached the QVW for your reference.

4 Replies
Not applicable

Hi Simon,

in Expression tab

color.png

Click on '+' symbol and click text color

and write the expression

color.png

eromiyasimon
Creator II
Creator II
Author

brother i want to display the icon color for legend not the text color.

sorry for my mis-conveyance.

vinieme12
Champion III
Champion III

If you want gradient colors then you have to use colors from the Color palette and won't be able to assign colors using expression

Try this

Comment The expression used for BackGround Expression

Go to Color tab

Select a color > Two or Single Color Gradient >> Apply

gradient.PNG

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

If you want to show RED and GREEN at the Same time, that is not possible buddy

Also I'd like to add that if your first bar was a Red; i mean sum()<0  then the Legend would also show Red color

Legends automatically pick up the color of the first evaluated dimension value

gradient.PNG

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.