Jump to content
Software FX Community

legend disappear


User (Legacy)

Recommended Posts

Hi,

In a Gantt chart I use SerLegBoxObj and set:

chart.SerLegBoxObj.Alignment = ToolAlignment.Near;

and then use:

for(int t=0; t<series; t++)

{

chart.Series[t].Legend = ...;

chart.Series[t].Color = ...;

}

I have 6 series and in legend box only display 5 of them, and the last

legend disappear, In debug, I have checked the data is correct, it seems

like the legend has 2 columns, how can I ensure all the legends displayed

correctly? thanks.

michael

Link to comment
Share on other sites

I got it done by:

chart.SerLegBox = false;

chart.SerLegBoxObj.DrawingArea = false;

chart.SerLegBoxObj.Alignment = ToolAlignment.Center;

..........

chart.SerLegBox = true;

"Michael Zhao" <mcchoice@hotmail.com> wrote in message

news:gOrSiYb%23EHA.1120@webserver3.softwarefx.com...

> Hi,

>

> In a Gantt chart I use SerLegBoxObj and set:

> chart.SerLegBoxObj.Alignment = ToolAlignment.Near;

>

> and then use:

> for(int t=0; t<series; t++)

> {

> chart.Series[t].Legend = ...;

> chart.Series[t].Color = ...;

> }

>

> I have 6 series and in legend box only display 5 of them, and the last

> legend disappear, In debug, I have checked the data is correct, it seems

> like the legend has 2 columns, how can I ensure all the legends displayed

> correctly? thanks.

>

> michael

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...