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: 
Anonymous
Not applicable

Need change the stacked Bar chart color in Red and Green

Hi am new of Qlik Sense,

Please help me , How to change the Stacked Bar Chart color. using expression or measure.

testbar.PNG

Above is our requirement,

8 Replies
s_achraphe
Contributor III
Contributor III

Hello,

One way is to create a master measure for each measure and you will be able to choose the color that you want

hope it helps

Capture d’écran 2018-07-31 à 22.31.39.png

A.

Anonymous
Not applicable
Author

Hi Achraphe Saadoune ,


Thanks a lot for your help.

s_achraphe
Contributor III
Contributor III

Hello Bhaskar,

Did you manage to change the colors of your barchart ?

When you create your measure as a master Item you can set the color

Please find the screenshot below :

Capture.PNG

Then you can drag your measure into your bar Chart and replace your existing measure

balabhaskarqlik

Bar chart:

Dimension - [Project Code]

Measures - 1). Count([Counts of Green]) - Label - CountsofGreen

                 2). Count([Counts of Red]) - Label - CountsofRed

Appearance - Presentation - Stacked - Vertical

                  - Colors and legend - Custom - By Measure - Count([Counts of Green])

Select some other options - Done.

Change the expressions by requirement...

s_achraphe
Contributor III
Contributor III

As I said  you have to create two master item with your measures

Capture.PNG

then do the following :

C.png

No needs to configure the colors in the appearance panel as you set them when you created your master item measures

Anonymous
Not applicable
Author

hi Achraphe Saadoune,

Thanks for your support. My color problem is resolve. but I want to show to Measure number in chart also which are show my attached pic.

s_achraphe
Contributor III
Contributor III

‌hello,

sorry for the late answer

unfortunatly in qliksense you cannot show the values of each measure on a stacked bar chart

only the  total is displayed

the only way is to  choose the group option in the style tab

as you don’t have many values in your dimension it will still look ok

Anonymous
Not applicable
Author

Hi Achraphe Saadoune,

Please help me i have data in tabular format but how to showing this on qlik sense. like below

headeing.PNG