Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Colors on Charts

I have a bar chart with data for different months.  Previously the months were different colors on the bar chart (January was blue, February was red, etc).  I added a line to my chart to show some different data and now all the months are blue.  Is there a way to have the bars be multi-colored while still having the line?

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Can you share your sample FILE or sample Data?

UPDATE : I think you are talking about COMBO Chart...

Multicolored in Combo chart

View solution in original post

6 Replies
MK_QSL
MVP
MVP

Can you share your sample FILE or sample Data?

UPDATE : I think you are talking about COMBO Chart...

Multicolored in Combo chart

jsingh71
Partner - Specialist
Partner - Specialist

Hi Manish,

May be he is looking for multi-colour option in Combo Chart. If we add only one expression( presentation Bar) then it was shows different colour in each bar but once we add one more expression (Presenation Line) then all the Bar now showing to similar color only.

May be multi-color for bar is not possible in combo chart when we add more then one expression.

Please suggest.

jsingh71
Partner - Specialist
Partner - Specialist

Hi Manish,

I follow your link and got the result. Thank you for sharing.

Combo.png

Michael

You need to put expression in Background Colour. Replace 'City' with your Dimention name.

Combo1.png

Not applicable
Author

Hi ,


Color Property.JPG

If you are using one dimension then check on Multicolored other wise check Persistent colors as shown in the image

Regards

Kumar

Not applicable
Author

This has changed it so that there are colors but still not quite what I want.  With this code each city is a different color.  What I need is for each month to be a different color.  January will be blue for every city, February will be red for each city, etc.

Also  I have two dimensions, the second on is a drill down.

Thanks

jsingh71
Partner - Specialist
Partner - Specialist

Hi Michael,

If you want specific color for each field then use below expression:

 

if(FieldIndex('Month',Month)=3,Green(),
if(FieldIndex('Month',Month)=1,Blue(),
if(FieldIndex('Month',Month)=2,Red(),)))

in the same under background color. Replace month with your dimension name.