Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Legend with custom colors in a Stacked Bar Chart

Hello Community,

I have created a stacked bar chart and added custom colors by expression.

Now the legend option disappears. I want to display the legend.

Is there any possibility do display the legend with custom colors?

Thank you for the help!

Greetings,

Florian

10 Replies
gfch2305
Contributor II
Contributor II

Hi Community,

I had the same issue to show legend of a dimension in a Stacked bar chart, it is not available when you use the color by expression. I recommend an alternative to resolve it, use the color by dimension, see steps below:

  1. Create a dimension named StatusColor based on the dimension Status.

gfch2305_0-1732922879876.png

 

  1. Edit the dimension StatusColor using the tab Value colors.
  2. Insert the hexadecimal equivalent color for each status: red=#800000, yellow=#FFFF00 and Save.

gfch2305_1-1732922879878.png

 

 

  1. Edit bar chart visualization and select Appearance and expand colors and legend. Show legend is available and you can custom legend position.

gfch2305_2-1732922879880.png

 

            

gfch2305_3-1732922879880.png