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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chars Legend Color Issue


Hi Team,

I got a problem regarding Charts legend color. The scenario is I have a Combo Chart where Stack Bar show the Sales value company wise and line show the Growth%,I use one dimenssion and multiple expression. In expression I am using the Background color option, the chart is showing the Sales value for month wise for different company through stack bar.

For individual company I am using individual expression. Color for every company is different and retrive this RGB() for every company from different table, the main transanction table is conected with the color table through the Cname(Company Name) field.

In normal scenario it's working fine but the problem is when for a specific company for a first month if data is not present the legend symbol showing the black color while the stack bar showing the exact color for next month onwards where data is available for this company.

I can't use Company as a dimenssion because I have to show the growth through different expression and combo chart not supported multiple dimenssion & multiple expression.

LColor.png

In above image BBB showing black in legend symbol but the color of BBB is blue which show in a bar.

For better understanding I am attaching the application and the data file also.

Please help.

Regards

Anup

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Anup,

this is because your Legend colors are calculated based on the respective values for first Tdate

I did a lil tweak as this calculation need not to be referenced with Dimension I have added 3 variables and passed them to the color

so at any given time as variable are calculated irrespective of Tdate we will get colors calculated for all our expressions

check out the attached application hope this helps

mark helpful/correct answer

regards,

Bhagirath S

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi Anup,

this is because your Legend colors are calculated based on the respective values for first Tdate

I did a lil tweak as this calculation need not to be referenced with Dimension I have added 3 variables and passed them to the color

so at any given time as variable are calculated irrespective of Tdate we will get colors calculated for all our expressions

check out the attached application hope this helps

mark helpful/correct answer

regards,

Bhagirath S

Not applicable
Author

Thanks Bhagirath. It's working fine.

Anonymous
Not applicable
Author

your welcome

Cheers...!!!

Bhagirath