Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
woshua5550
Creator III
Creator III

How to set multiple colors in bar chart dimension text?

hi all

for example

"Beijing"  shown as red

"Shanghai" shown as black

飞信截图20160622123928.png

thanks

9 Replies
oknotsen
Master III
Master III

Go to the Colors tab and near the top right corner select "Multicolored".

May you live in interesting times!
Anonymous
Not applicable

multicolor.PNG

Frank_Hartmann
Master II
Master II

Try like this:

Unbenannt.png

Add expression:

if(city='Beijing',red(),if(city='Shanghai',black(),'othercolour'))

woshua5550
Creator III
Creator III
Author

thanks for your reply , but i don't think it works , i need to change the color of  label rather than the bar

woshua5550
Creator III
Creator III
Author

hi

yes i supposed it will work but it not , i have tried but nothing happened, does it works for you ?

if so ,can you attech your test file ? thanks

sampada0810
Creator
Creator

Go to colors tab in the chart properties and check the Multicolored checkboxmulticolored.PNG

beck_bakytbek
Master
Master

Hi Lau,

try to make those steps:

1.tab: Expression >Select your Expression > BackgroundColor

2. type this this Expression: if(City='Beijing',Red())

i hope that helps

beck

woshua5550
Creator III
Creator III
Author

Hi beck

maybe i didn't state clearly

i want to change the color of dimension axis lable

thanks