Is there an alternative to get the legend included for a stacked bar chart when colouring is done by expression?
If multi-coloured is chosen instead (to keep the legend) - how can I get the exact name or code for the system selected colours - so that a pie chart (for example) next to this with same categories can be set with matching colours?Missing legend from stacked bar
For the latter you can create a table that details each color for each dimension value so that you can control each color to your liking. If you need i can send an example.
A nice trick (which i didn't know until very recently) to have Qlik generate some machine colors that will be the same between 2 charts (like a stacked bar where the 2nd dimension is the same dimension used in a seperate pie chart) is as follows :
where 'city' is arbitrary and represents the name of the grouping and City is a field name that represents your 2nd dimension in the stacked bar and only dimension in the pie.