User (Legacy) Posted January 13, 2005 Report Share Posted January 13, 2005 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 More sharing options...
User (Legacy) Posted January 13, 2005 Author Report Share Posted January 13, 2005 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.