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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Use of pre-defined colors in charts

Hi everybody,

I am building a template which has to contain 5 different colors for the coloring of the dimensions of the charts. What is the best way to do this to make it work for all kinds of data? I do not want to fix colors to specific data values (e.g. make Coca Cola red), because I am using a huge set of data with no predefined color scheme available.

I already tried to update the default colors used in the Color tab, but then 18 different colors instead of 5 are used..

1 Reply
pover
Partner - Master
Partner - Master

For good or bad, QV just allows its 18-color basket so if you want just 5 colors, repeat those 5 colors throughout the 18-color basket, or create write a pick() function that takes a random number and assigns one of the 5 colors.  I think either way you run the risk of have 2 same-colored slices being placed next to each other.

Karl