Skip to main content
Announcements
New: No-code data prep in Qlik Cloud Analytics™ TAKE A TOUR
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Colors assigned to an attribute

Gang, can I assign a color to an attribute? For example, if i have a pie chart of sales - I want Honda to always come up as Red, Ford to come up as Blue, and Toyota as Green.

Seems that when i reload my data set the color scheme always changes.

Any suggestions?

4 Replies
martin
Partner - Contributor II
Partner - Contributor II

Hi,

Look at the attachment, it's an application wich do that.

The color code is mentionned in the script editor.

Hope that helps you.

Martin

rahulgupta
Partner - Creator III
Partner - Creator III

Hey Hi,

In the Expression tab >> Expand the Expression >> Background Color >> Use the following expression:

=If(Brand='Honda',Red(),

     If(Brand='Ford',Blue(),

        If(Brand='Toyota',Green())))

or

Look at the App Below.

Hope this helps..

Regards

SunilChauhan
Champion II
Champion II

lease see the attached

Sunil Chauhan
Not applicable
Author

Hi,

          In Properties ---> Color ---> Persistent colors.

If you click the above option in pie chart properties , the colors wont get change.

Regards,

Antony.