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

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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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