Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Transparent Legend?

Is there a way to make the background of the legend to be transparent?
 
vs2005
c#
ni 7.1
 
thanks,

scott
0 Kudos
Message 1 of 6
(4,019 Views)

Yes, set the Legend.BackColor property to Color.Transparent. You can do this at design-time by going to the Web tab in the drop-down editor of the BackColor property and selecting Transparent.

- Elton

0 Kudos
Message 2 of 6
(4,013 Views)

Hello Elton,

That works well, however, our users like the legend to be on the graph.  Can I make the legend transparent on the scattergraph?

0 Kudos
Message 3 of 6
(4,007 Views)

Yes. In addition to setting the Legend.BackColor property to Color.Transparent, position the legend where you want it to appear on top of the graph, and then either in the form's constructor or Load event, set the parent of the legend to be the graph. For example:

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
 
    legend.Parent = graph;
}

- Elton

0 Kudos
Message 4 of 6
(4,001 Views)

Nice, very nice.  Thanks a mil.

 

Scott

0 Kudos
Message 5 of 6
(3,996 Views)
Hello,
 
my problem is that the legend name is always on top of the graph line. The graph line should be always on top and the name in the back.
Also is always the identification line in the legend to see how to switch this off?
 
I think there is no solution for that problem, but maybe yes.........
 
Thomas
0 Kudos
Message 6 of 6
(3,883 Views)