Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Not applicable

Custom colors in Qlik Sense

Hi All,

Is there any way through which we can customize the default color panel for every object in Qlik Sense ? Is there any css in which we can make changes ? Is there any way through which we can modify existing object's layout ?

There seems to be a thread on this http://community.qlik.com/message/601812#601812 .  However, It gives no access page.

Many thanks in advance.

Regards,

Hardik

8 Replies
yblake
Contributor II

Re: Custom colors in Qlik Sense

Same answer as this question : How can custom colouring be set up in Sense ?

You can only change some colors (i.e. bargraph bars colors) using colors "by expression" and use rgb() or argb() functions.

Not applicable

Re: Custom colors in Qlik Sense

Dear yblake,

With bar chart, color, I choose By Expression: rgb(243,47,47)

but it is only show gray color on chart.

Is it wrong formula?

Thanks.

yblake
Contributor II

Re: Custom colors in Qlik Sense

Did you try with an equal sign befor : =rgb(...) ?

As exemple, you can try to put some data in script :

catalog:

LOAD * INLINE [

    Product, R, G, B

    Car, 255, 0, 0

    Boat, 0, 255, 0

    Truck, 0, 0, 255

];

then create a bar chart with any expression (i;e. RowNo() ) and expression color as  =rgb(max(R),max(G),max(B))

barcolor.PNG

Regards

Not applicable

Re: Custom colors in Qlik Sense

Thanks yblake.

It's good!

abhaysingh
Contributor III

Re: Custom colors in Qlik Sense

hi yblake,

if there are two bar chart w.r.t dimension value boat,car,truck than how can we change the color?

reddys310
Honored Contributor II

Re: Custom colors in Qlik Sense

Hi Hardik,

As your problem seems like maintain all your custom coloring from one place. You have 2 options.

Use color by expression to color it the way you need.

1) make use of environment variables: this will actually help you in the case of re usability or easy color governance

2) Have a database table or a file which contains these color codes and make use of them dynamically.

If you would like to follow the first option kindly ref to Qlik Sense - Variables Interface (video) by mto.

Hope this helps!

- Sangram Reddy

Not applicable

Re: Custom colors in Qlik Sense

Hi,

I used this tip in line chart.

I have a problem there, when I make selection of the month, for example, the specific month stay in the right color and the rest of the line becomes the color of the second line.

Do you have a solution for this?

Thanks a lot,

gal

yblake
Contributor II

Re: Custom colors in Qlik Sense

Using RowNo() was for a sample test, but I'm not sure how Sense handle this function during selections ?

You may test for specific dimension values, for the exemple given before it would be i.e. :

pick(1+match(only(Product),'Boat','Car','Truck'),lightgray(50),lightred(),lightgreen(), lightblue())

Community Browser