Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
rtr13
Contributor III
Contributor III

Persistent Colors within Line Chart

Hi All,

I'm pretty new to Qlik View, and I've seen multiple posts in regards to a persistent color problems, but none have been able to help me solve my current situation. Below I attached a screenshot of my current line chart. When selecting multiple fields, with the persistent colors selected, ignores my calculated colors, and creates it's own. In addition, it uses the same color for different values, which shouldn't be the case, each line should be a separate color. When deselecting the persistent colors option, my calculated colors come back through, but I still need the colors to remain the same if a customer chooses to drill down based on their selection. 

 

Captures.PNG

 

Has anyone else ran into this problem? If so, how do you go about fixing it?

Thank you!

Rose 

5 Replies
lockematthewp
Creator II
Creator II

In the Expression page of the chart, under the expression click background color and you can use a formula to set the color of the lines. For instance. =if ([Dimension] = 'A', green(), if ([Dimension] = 'B', blue(), red()))

This will then keep the same colors no matter what is selected.

trdandamudi
Master II
Master II

I am using version 12.10 and I don't see that issue.  What is your version number ?

rtr13
Contributor III
Contributor III
Author

I am using version 12.20. The issue only arises on one line chart that has to do with Providers. So when multiple Providers are selected, each should have their own color, but they are repeating and not starting at the first calculated color. 

trdandamudi
Master II
Master II

One suggestion is, to re create a new chart and see if it works. The reason I am saying this is  because in the past I had several issues where the chart doesn't do what you expect. When I re-created the chart then it used to work. May be the chart is corrupted. Give a try and see if that help...

 

Brett_Bleess
Former Employee
Former Employee

Rose, not sure if this will help or not:

https://community.qlik.com/t5/Qlik-Design-Blog/Colors-in-charts/ba-p/1475280

Feel free to back the URL up to the Qlik-Design-Blog/ location and do some searching yourself there, as there are some other posts, this one looked like it might be the most useful for your use case, but not sure about line v bar chart settings etc.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.