Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
berryandcherry6
Creator II
Creator II

Applying custom colors for bar graph in qliksense

Hi,

I am trying to apply custom colors for bars in bar graph.

my expression for each bar in graph is below

1.)sum(vegetables)/sum(groceries)

2.)sum(fruits)/sum(groceries)

3.)sum(bananas)/sum(groceries)

How could i apply different custom colors to these bars.Please help me on this.

12 Replies
berryandcherry6
Creator II
Creator II
Author

Hi,

below is my expression

my expression for each bar in graph is below

1.)sum(vegetables)/sum(groceries)

2.)sum(fruits)/sum(groceries)

3.)sum(bananas)/sum(groceries)

TKendrick20
Partner - Specialist
Partner - Specialist

You may be able to do the following:

If(Column(1),RGB(255,0,0),

     if(Column(2),RGB(0,255,0)

          if(Column(3),RGB(0,0,255))))

prashanth1712
Contributor III
Contributor III

hi,

may ben u can try this...

Pick(Match(groceries, 'vegetables', 'fruits', 'bananas'), Blue(), Green(), Black())