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

Need help for Pie chart color

Hi All,

I need your help to create the pie chart as attached. The blue color shows the region 1 and and it has many countries with in it. same for all the colors.  Thanks in advance.

Qlikpie.JPG

4 Replies
prma7799
Master III
Master III

Please share some sample app

Sergey_Shuklin
Specialist
Specialist

Hello!

If you use a country as a dimension you can set this expression for background color of your chart:

if(region=1,rgb(x,x,x),if(region=2,rgb(y,y,y)... and so on. It can help if you don't have a lot of regions.

Anonymous
Not applicable
Author

Please post sample data

amit_saini
Master III
Master III

Hi,

Please try something similar :

So in ur case for Region as Dimension try background Color as below:

=if(Region='A',rgb(141,170,203),if(Region='B',rgb(252,115,98), if(Region='C',rgb(187,216,84))))

Thanks,

AS