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

Legend Colour changes from chart to chart.

Hi , I have a few charts in my dashboard and the issue is that from one chart to the next ,the colour scheme is inconsistent.

If the 1st chart shows 2020 in blue and 2021 in yellow colour, the next chart behaves in the opposite manner.

How could I fix this issue? How Do I write the  expression to set the colours permanently?

I have attached the screenshot for reference .

aashok_0-1664790566504.pngaashok_1-1664790618953.png

 

Labels (3)
2 Replies
justISO
Specialist
Specialist

Hi, easiest way to set specific color to your measure is to convert each measure to 'Master Item' (master measure) and in its properties set this measures 'Measure color'. So if you reuse this measure in each graph it will show same color in all graphs (Master measure formatting must be on). Other way to 'change' measure color is to change places of your measure, as first one in the graph will have 1st main color and etc, so basically, in each graph your measures should go in the same order to maintain consistent colors.

Nick_Asilo
Support
Support

Assigning colors to master items 
Note, in order for a visualization to use colors assigned to Master items, that visualization must be able to utilize library colors, most are able to do so but a few can't.

This can be checked in our documentation for each visualization under Properties>Appearance>Colors and legends

For example:
Treemap has the "Use library colors" option 
But Mekko charts do not 

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up!