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

Legend color is mismatched

Hi all,

the color of the legends graphs is mismatched to the graphs in the diagram (see picture).

In the x axis i want to show all saturdays and sundays in red.

Has anyone an idea how to fix this?

mismatch.jpg

5 Replies
Not applicable
Author

Hi Sabstar ,

your colour is based on the expression you have defined, as all three expressions fulfil the red colouring condition that is what you have displaying in your legend.

You might want to think about having a set colour for each expression and then look to adjust the line style instead for those weekend days, to show your difference. Solid for working day, dashed for weekend for example

hope that helps

Joe

anbu1984
Master III
Master III

Can you post sample app

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I have not tested this, but you might be able to use Dimensionality() to conditionally colour the lines. In your foreground colour, expression:

     =If(Dimensionality()>0, ... existing colour expression ...)

Insert your existing expression into the above. This should prevent the legend from being affected by the colour expression.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Not applicable
Author

Thank you!!!

I tried it out but nothing happened. (see picture)

😞color.jpg