Login Page - Create Account

Support Board


Date/Time: Sun, 25 May 2025 18:58:34 +0000



[Programming Help] - ACSIL Subgraph Custom Value with Transparent Background

View Count: 741

[2023-05-20 11:30:33]
User92573 - Posts: 560
Dear Support

It's probably my programming but I wonder if you could throw some light on this issue.


I'm using (.UseTransparentLabelBackground) which in other studies has no issues however when I use DrawStyle = DRAWSTYLE_CUSTOM_VALUE_AT_Y; I'm not seeing a transparent background as expected but instead the charts selected back-color.


The code is really simple:


// Subgraph01.DrawStyle = DRAWSTYLE_CUSTOM_VALUE_AT_Y;


if(input_UseTransparentTextBackground.GetInt() == 1)
{
  Subgraph01.UseTransparentLabelBackground = true;  
}
else
{
  Subgraph01.UseTransparentLabelBackground = false;  
}


// That's it and with other DrawStyles I seem to get the expected results..

I'm pretty sure I've not missed anything but any help or assistance on this issue would be gratefully received.

Many thanks.
[2023-05-20 14:04:13]
User431178 - Posts: 687
UseTransparentLabelBackground affects the Name Label and Value Label.
If you want the subgraph output to have transparent background you would need to use DRAWSTYLE_TRANSPARENT_CUSTOM_VALUE_AT_Y.
[2023-05-20 15:30:36]
User92573 - Posts: 560
Thanks again (Second time) that was really helpful and worked perfectly.

I thought "UseTransparentLabelBackground" seemed so obvious given the "Value Label" syntax in the Study Settings that would be the answer and looked no further but as always Sierra has pretty much covered everything and if not immediately visible, then it's almost always somewhere in the background.

Can I ask in what part of the world you are based?

Many thanks.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account