Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
mariasdu
Contributor

How to use argb colors that are included in the script?

Hi

I have a txt file, in which I have defined some colors to use in my charts:

/* graf farver */

SET vGrafFarve1 = argb(550,141,170,203);

SET vGrafFarve2 = argb(500, 0,64,128);         

SET vGrafFarve3 = argb(500,168,203,46);

SET vGrafFarve4 = argb(600,128,64,0);

SET vGrafFarve5 = argb(100,229,182,148);

It is loaded in the script like this:

// color palette
$(Include=E:\QV12 UDVL\Statistik\Standard formater\color_variables.txt);


In my variable overview it looks like the txt file is correctly loaded:

pic.png

When I make a chart and define the colors in the colors tab, I do like this:

pic2.png

pic3.png

QV says the expression is OK, but it does not give me the defined color??

Any advice?

If I write the argb color code, instead of the variable vGrafFarve1, I still dont get the defined color.

But if a type is as a rgb color and ie. rgb(141,170,203) it gives me ne color I want.

My question is, can't QV read argb colors?

Kind regards

Maria

1 Solution

Accepted Solutions

Re: How to use argb colors that are included in the script?

Try like this

=$(variable)

4 Replies

Re: How to use argb colors that are included in the script?

Try like this

=$(variable)

qlikmeplease
Contributor II

Re: How to use argb colors that are included in the script?

I Have tried your ARGB color and it seems to work fine on my side, what objects are you trying to color?

mariasdu
Contributor

Re: How to use argb colors that are included in the script?

Now it works! Thanks a lot

mariasdu
Contributor

Re: How to use argb colors that are included in the script?

Ok, trange?! I'm using the argb colors in line charts and bar charts.

Community Browser