Jump to content
Software FX Community

legend does not show


User (Legacy)

Recommended Posts

i use an image as output but my legend does not show when using chartf 

financial extension

graf.SerLegBox = true;

grafi.SerLegBoxObj.DrawingArea = true;

grafi.SerLegBoxObj.Alignment = ToolAlignment.Near;

grafi.SerLegBoxObj.Docked = Docked.Bottom;

grafi.SerLegBoxObj.Visible=true;

grafi.Series[0].Legend = "Product 1";

grafi.Series[1].Legend = "Product 2";

Or is legend not possible with an image output?

Link to comment
Share on other sites

The SerLegBox is turned off when the Analytical Gallery of the Financial 

Extension is activated.

Why?

The Financial Extension uses a much more powerful legend tool and adds

everything to the UserLegendBox.

I think what you want is to turn that on.

Furthermore, setting the series[0].Legend property is not desired as how do

you know really which Series you are setting?

The desired way to do this is like this:

analytical1.ClosePriceSeries.Legend = "Product1";

OR

study.Series[0].Legend = "Study 1";

I hope this clarifies matters.

-c

"Edwin" <info@ibrain.nl> wrote in message

news:u17cfpVtFHA.1724@webserver3.softwarefx.com...

>i use an image as output but my legend does not show when using chartf

>financial extension

> graf.SerLegBox = true;

> grafi.SerLegBoxObj.DrawingArea = true;

> grafi.SerLegBoxObj.Alignment = ToolAlignment.Near;

> grafi.SerLegBoxObj.Docked = Docked.Bottom;

> grafi.SerLegBoxObj.Visible=true;

> grafi.Series[0].Legend = "Product 1";

> grafi.Series[1].Legend = "Product 2";

>

> Or is legend not possible with an image output?

>

>

>

Link to comment
Share on other sites

Thanks for your help, that was what I was looking for!

"Software FX Support" <support@softwarefx.com> wrote in message

news:$OP%23kVYtFHA.1724@webserver3.softwarefx.com...

> The SerLegBox is turned off when the Analytical Gallery of the Financial

> Extension is activated.

> Why?

> The Financial Extension uses a much more powerful legend tool and adds

> everything to the UserLegendBox.

> I think what you want is to turn that on.

> Furthermore, setting the series[0].Legend property is not desired as how

> do you know really which Series you are setting?

> The desired way to do this is like this:

> analytical1.ClosePriceSeries.Legend = "Product1";

>

> OR

> study.Series[0].Legend = "Study 1";

>

> I hope this clarifies matters.

> -c

>

> "Edwin" <info@ibrain.nl> wrote in message

> news:u17cfpVtFHA.1724@webserver3.softwarefx.com...

>>i use an image as output but my legend does not show when using chartf

>>financial extension

>> graf.SerLegBox = true;

>> grafi.SerLegBoxObj.DrawingArea = true;

>> grafi.SerLegBoxObj.Alignment = ToolAlignment.Near;

>> grafi.SerLegBoxObj.Docked = Docked.Bottom;

>> grafi.SerLegBoxObj.Visible=true;

>> grafi.Series[0].Legend = "Product 1";

>> grafi.Series[1].Legend = "Product 2";

>>

>> Or is legend not possible with an image output?

>>

>>

>>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...