Discussion board where members can learn more about Qlik Sense App Development and Usage.
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?
I don't know a way to pull the colors from the Master dimension.
But what you can try is giving in the RGB code in the script.
So in my app I have data from age by gender.
In the script i added:
Load * Inline [
And in my background expression i used:
If(Wildmatch(Sex, '*ale'), Color, Lightgray())
that resulted in this:
Is this what you are looking for?
Yeah, that's exactly the strategy I've implemented in my app
I've used the Master dimension colors to use in bar charts, and RGBs in script for the same dimension that match Master dim colors - for background color expressions.
Thanks for all your help!
I have same problem of giving legends to stacked bar chart . Here i have used colour by expression so that legends are not visible.
Is there any extension for this to do?
Hi, the only way i found to do this, was creating a meassure in master items and assigning the color to this.