Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic bubble opacity and order

Dear all,

I was wondering whether there was anyway to change the opacity and the order (in which the bubbles are placed upon one another) in a way similar to the colour and bubble size system.

Thanks for all the help!

6 Replies
lakshmikandh
Specialist II
Specialist II

Opacity you can control but not in similar way like color and size , i think order of bubble will be based on dimension sorting order.

Not applicable
Author

I'm aware that you can control opacity, and that there is no visible option to control opacity in the same way as colour and size. I was wondering whether there was any way to apply the same expression as controls colour and size to opacity through some console or other means?

What do you mean by dimension sorting order? The order in which the members of the dimension appear in the database?

Thanks for your quick response and help!

Not applicable
Author

HI Lukas,

Might be obvious but have you tried the color function argb(a,r,g,b)?

Lets you define color and opacity with alpha value.

Thanks

Patric Nordström, Idevio

Try IdevioMaps for Qlik Sense, QlikView and GeoAnalytics Connector at QlikMarket or watch the highlights on video.

Not applicable
Author

I am unfamiliar with that function but it sounds promising, could you please give me some more info?

Thank you very much!

Not applicable
Author

Hi Lukas,

From the help:

ARGB() is used in expressions to set or evaluate the color properties of a chart object, where the color is defined by a red component r, a green component g, and a blue component b, with an alpha factor (opacity) of alpha.

Syntax:

ARGB(alpha, r, g, b)

Return data type: dual

Arguments:

ArgumentDescription
alphaTransparency value in the range 0 - 255. 0 corresponds to full transparency and 255 corresponds to full opacity.
r, g, bRed, green, and blue component values. A color component of 0 corresponds to no contribution and one of 255 to full contribution.

All arguments must be expressions that resolve to integers in the range 0 to 255.

For example

=argb(125,255,0,0) // Half transparent red

=arrgb(255,255,0,0) // Non transparent red

Here's a link to an article using argb: Using RGB() and ARGB() to define colors

Stars
Creator
Creator

Did argb() work for you?  I am trying to make certain bubbles on a distribution plot show up when selected.  Color by expression works for me, but sometimes they're behind the other bubbles and aren't visible.  Just wondering if you had any luck.