Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Same colors for same values in chart

Hi everyone,

I have a problem with colors in charts

I have multiple charts with different dimensions with same values and I need to show these same values in one color in all charts.

I try to use 'Persistent colors', but it's not work correct.

BR, Andris

1 Solution

Accepted Solutions
kji
Employee
Employee

Persistent colors will makes sure tha same value in the same field is always presented with the same color (determined by load order), however if the value appears in more than one field there is no easy way to achieve this. For a limited number of values i guess you could achieve this using colorexpressions if(field='A',Red(),if(field='B',Blue(),...

View solution in original post

6 Replies
Anonymous
Not applicable
Author

You have the same dimensions which needs to have the same color ... or the same color for specific values?

Not applicable
Author

Same color for specific value:

for example: 2 - red, 3- yellow, 4 -green

Anonymous
Not applicable
Author

if you know which charts contain which values you could predefine the colors ... but I guesse this is not what you want, because when adding a value this should automatically be given a color?!

kji
Employee
Employee

Persistent colors will makes sure tha same value in the same field is always presented with the same color (determined by load order), however if the value appears in more than one field there is no easy way to achieve this. For a limited number of values i guess you could achieve this using colorexpressions if(field='A',Red(),if(field='B',Blue(),...

Not applicable
Author

Yes, I try this expressions too, but there was two results: nothing or all chart in black.

See in file charts: Mark 1 & Mark 2

Not applicable
Author

I found what was wrong.

Red(),Blue().. not work here

There must be used rgb() function