Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multicolor in combined Graphs

Hello!

I need to create a combined graphic, with bars and a line graphic.

Can I activate multicolor option in the bars graphic?

Thanks.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

for random colors: =rgb(floor(255*Rand()),floor(255*Rand()),floor(255*Rand()))

or you could use an if then statement

=if(Product='foo', Red(),if(Product='bar',Blue(),Green()))


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Gysbert_Wassenaar

Yes, add the dimensions and expressions. And choose how the expressions should be displayed (bar and/or line)


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks for the answer, but the problem is that when I choose that one expresion is the bars and the other is the line graphic, the multicolor option is desactivates and all my bars turn into green, and I need that each bar had its own color.

Gysbert_Wassenaar

Ah, yeah. The option on the colors tab is not available. But if you click on the + in front of the expression on the Expressions tab you can click on Background Color and change the expression to calculate a different background color for every bar.


talk is cheap, supply exceeds demand
Not applicable
Author

OK, I´ve found it, but I don´t know how to change the color for each bar........

Gysbert_Wassenaar

for random colors: =rgb(floor(255*Rand()),floor(255*Rand()),floor(255*Rand()))

or you could use an if then statement

=if(Product='foo', Red(),if(Product='bar',Blue(),Green()))


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks a lot, finally I´ve made it