Using Qlik Sense desktop, we need to implement a predefined range of colors to all the charts in our application. For e.g. we need to implement different shades of Green and Blue on all charts. Please suggest an example or steps needed to achieve this.
Thank you undergrinder and Balraj for quick reply. We have checked the suggested links but it does not resolve our issue.
The link "Alternative color schemes / palettes management" is not much clear. Do you know how can we make a custom theme and how do we access it in our desktop app and where should we add that theme. Are there any link which suggest a step by step procedure. Also the link suggests to add the /theme/highvis - at the end of the URL but that change the whole dashboard theme and not just the chart. My requirement is to apply a theme only to a chart on any dashboard.
to change the theme only to a chart of your dashboard see this link :
The approach aims to use an expression that doesn't need to be rewritten each time the measure changes and can be copied across different objects without changes.
this will explain you how to define color pallete with variable then use a particular mesure in all your chart to apply your color range pallette :
written by ryy
in Qlik Sense 2.1 follow the end of the post :
Workaround for v2.1 and below:
- The sort order is kind of critical, the only way of making this function in v2.1 was to use the formula itself as rowno(), rank(column(1)) and other options would all deactivate the sort order of descending values which is pretty important in most charts. As such your formula would be as follows:
ColorMix1( rank(total [your measure expression here] ) / NoOfRows(TOTAL) , $(vColorMixDark), $(vColorMixLight))
- Unfortunately this means there is always an admin element whenever you use this, and whenever you change the expression formula. However, a quick upgrade to v2.2. in a months time (as of writing) will have you back to quick and simple.
Thanks Bruno, it does change the chart color but the legends are missing and I have to show the legends as mine are mostly stacked bar charts. Is there any other option to set themes for charts?
Yes you're right. it's because chart in qlik sense does'nt support legend with specific color by expression.
May be with next version of Qlik Sense it will be possible. Wait and see ..
you can perhaps add a Text and image box with your colors as legend