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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
CasperQlik
Creator
Creator

Allign stacked barchart with legend

Hi Qlik Community

Is there a way to allign the segements of a stacked bar chart with the legend? See picture below for clarification.

If have found a way to flip the order but that flips both the segments and the legend, so they will still not align. Any help is appreciated.

 

CasperQlik_0-1768386297265.png

 

Casper

Labels (2)
5 Replies
rubenmarin

Hi, you can try to set, in Colors and legend -> Custom -> By Dimension instead of Auto.

This way the legend is fixed (alphabetically I think), and you can set another field with the dimension in case you want to switch legend colors

CasperQlik
Creator
Creator
Author

I already have it set by Dimension unfortunately. 

rubenmarin

In my test, that option fixes the legend, so you can change the sort of the segments so it's equal than the legend. It doesn't works for you like that? Can you upload a sample?

senzensen
Contributor
Contributor

I have the same question on this. the problem is in Qlikview we have 'expressions as legend' but in Qliksense it seems we no longer have. I want to have the legend shows the same orders downward as the stacked bar chart

CasperQlik
Creator
Creator
Author

Yes, this is also the functionality that I desire. Multiple users have requested it. But I can't get it to work.