Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
praveensprabhu
Contributor II
Contributor II

Need help on Pie chart color

Hi,

I have an issue with Pie chart color based on a condition. 

I have a Pie chart that should not be affected by any filter condition. so I have used set analysis. but when I select any filter value, the pie chart shows entire data but the colors are highlighted only for the selected filter value, rest of the slices in pie chart are shown in white color and the legends color change to black.

please see below screenshots - 

praveensprabhu_0-1607352238172.png

 

Chart Properties - 

praveensprabhu_1-1607352299151.png

praveensprabhu_2-1607352354600.png

I have used the BG color on Expressions. This is the expression I am using - 

=if(Statuss = 'Closed',green(),if(Statuss = 'Inactive/Archived',LightGray(),if(Statuss = 'On-Going',Yellow())))

 

Let me know where I am doing wrong. I tried by keeping this expression in BG color property of dimension. It isn't working there either. 

 

Thanks,

Praveen Prabhu

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda

@praveensprabhu  try below expression in BG color

=if(only({1}Statuss) = 'Closed',green(),if(only({1}Statuss) = 'Inactive/Archived',LightGray(),if(only({1}Statuss) = 'On-Going',Yellow())))

View solution in original post

2 Replies
Kushal_Chawda

@praveensprabhu  try below expression in BG color

=if(only({1}Statuss) = 'Closed',green(),if(only({1}Statuss) = 'Inactive/Archived',LightGray(),if(only({1}Statuss) = 'On-Going',Yellow())))

praveensprabhu
Contributor II
Contributor II
Author

Thank you....This expression worked.