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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bar Chart Colour using Expression

Hi Guys

What is the correct syntax for forcing the colour of my pie chart.  Here is my syntax in Expressions>Background Colour:

=If(TravelFlightCompany='BA',vBlue,

if(TravelFlightCompany='Kulula',vGreen,

if(TravelFlightCompany='SAA',vOrange,vGrey)))

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Hi try this...

Expressions>BackgroundColour:

pick(match(TravelFlightCompany, ' BA', 'Kulula','SAA'),
    
rgb(0,0,255),
    
rgb(0,128,0),
    
rgb(255,128,0)
     )

& colours tab >Data appearance color select grey..

Hope it will help u..

regards-bika

View solution in original post

5 Replies
pennetzdorfer
Creator III
Creator III

Your expression should work. Do your variables contain equal signs? If not, add "=" to your variables or write variables in your expression like $(vBlue)

Regards,

Florian

Not applicable
Author

Hi try this...

Expressions>BackgroundColour:

pick(match(TravelFlightCompany, ' BA', 'Kulula','SAA'),
    
rgb(0,0,255),
    
rgb(0,128,0),
    
rgb(255,128,0)
     )

& colours tab >Data appearance color select grey..

Hope it will help u..

regards-bika

Not applicable
Author

HI Bika

Worsk well thanks.  Only thing is I am using Dimension Limit, Show Top 5 and Options Show Others.  The Colour of my top 5 have been sey by me, but how do I set the colour for the "Other"?

Not applicable
Author

colours tab >Data appearance color select grey fpor "others"..

pls try this..but u cant fix inside the others dim...

regards-bika

Not applicable
Author

Hi Bika,

Could youtell how to assign document cal to a document as I have 25 document cals in the server

Thanks