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: 
karin_nevo
Contributor III
Contributor III

Control Pie chart colors by selections

Hi,

I have a pie chart  with unknown number of segments.

when a specific value is selected, I would like the other segments to remain in chart, just grayed out.

To keep the other segments I ignored the dimension on the expression: ({<Dim=>} Count A), but I can't find a way to control the color.

the only thing I can think about is to define under the colors (or the backgroud in the expression):

If (getfieldsselections(Dim)='X',ColorA, ColorB) and define color B as gray.

But I don't want to use constant values on the field selections, becuase they can change.

Any other idea?

Thanks,

Karin

1 Reply
Anil_Babu_Samineni

this condition will work while you select Dim as X only.

If(GetFieldSelections(Dim)='X',Red(), LightGray())

Or

for manually do this

If(Dim='X', Red(), LightGray())

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful