Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Multi Colored Linear Gauge

Please find the attached QVW and data set.

Capture.PNG

In the above straight table i would like to add different colors for each  country bars.

For example,

Country1 - Blue

Country2 - Brown

Country3 - Black

Country4 - Red


I tried giving a conditional statement in the gauge properties,

Capture2.PNG

But it is not working. Still showing a single color (green).


Is there a way to show different colors for each country.



Thanks

Koushik


4 Replies
HirisH_V7
Master
Master

Hi ,

Check this,

By Changing Back ground Color of  your Expression,

Linear Guage Color-209226.PNG

and Making Linear  Back Ground Color Transparent $()

HTH,

PFA

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Anonymous
Not applicable
Author

hirishv7

Thanks for the reply.

Is it possible to change green color portion of the bar.

My requirement is shown in the below image,

Capture.PNG

Please let me know if more information is needed.

Thanks

Koushik

Kushal_Chawda

I don't think that we can provide multiple color in Mini chart setting. But there is work around. You can do something like below

You can set the back ground color for countries. In mini chart setting choose the indicator as Needle.

Make sure that color should be light so that black needle will be visible.

MarcoWedel

Hi,

I guess you might not be able to define the linear gauge colours per country as this colour expression is not evaluated per dimension value, but you could define background colours per country (like Hirish already demonstrated) and use some transparent black as common linear gauge colour to get a darker shade of the background colours:

QlikCommunity_Thread_209226_Pic1.JPG

QlikCommunity_Thread_209226_Pic2.JPG

QlikCommunity_Thread_209226_Pic3.JPG

hope this helps

regards

Marco