Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
See why BI users voted Qlik #1 in 11 categories. GET REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Partner
Partner

Stacked Bar Chart Legend with Custom Colors

I have a stacked bar chart with custom colors. However, when I am using custom colors the option to also display a legend disappears. Is there any way to have a legend show up even though I am using custom colors?

Stacked Chart.PNG

Stacked Chart with Legend.PNG

13 Replies
Highlighted
Partner
Partner

I have the same problem. Did you found a solution yet?

Highlighted
Creator
Creator

As a workaround, perhaps create a text & image object containing the color legends, and put it next to the bar chart.

Highlighted
Partner
Partner

My problem is that I have a Drilldown, so my legend wil change.

Isn't this a bug in the Qlik Sense system?

Highlighted
Specialist
Specialist

Same problem... any solution for this?

Highlighted
Partner
Partner

As muliadyhartono‌ said. I just created an image and put it next to the chart. The chart is in a mashup, so it doesn't look too bad.

Highlighted
Partner
Partner

In the september release (or maybe June) they fixed a part of this.

In your measure items you can give your measures a color. That color will be used in the charts and legend. 

So if you make a measure for always and give it a color, it should be in your legend.

Highlighted
Specialist
Specialist

Yeah, thanks, that's great!

But I need this functionality for dimensions, not measures...

Highlighted
Partner
Partner

In the november release it is possible (not sure about september).

Make a master dimension and go to value colors (1).

Click on the color right of the dimension value and change it to the desired color (2). 

Change color.PNG

After that go the visualisation and (if not already on) select library colors.

Library.PNG

Is this what you want?

Highlighted
Specialist
Specialist

Yeah, that's the way to do it! Thanks!

The only thing is that I can't find a way to highlight rows in s straight table by this dimension colors.The only way I see there is "Background color expression"/ Is there a way to "pull" the colors from master dim into expression?