piiguu Posted September 5, 2011 Report Share Posted September 5, 2011 Hi, series in Legend Box and Data Grid are listed in different orders when the chart is a Gantt chart. Other types of charts don't have this issue. Is it a bug? The following code demostrates the issue. chart1.Data.Series = 2; chart1.Data.Points = 3;chart1.Gallery = Gallery.Gantt; //--> Trying changing to Bar to see different behavior chart1.LegendBox.Visible = true;chart1.DataGrid.Visible = true; chart1.Series[0].Text = "Men";chart1.Series[1].Text = "Women"; chart1.AxisX.Labels[0] = "A";chart1.AxisX.Labels[1] = "B";chart1.AxisX.Labels[2] = "C"; chart1.Data[0, 0] = 15; chart1.Data[0, 1] = 11; chart1.Data[0, 2] = 14; chart1.Data[1, 0] = 9; chart1.Data[1, 1] = 7; chart1.Data[1, 2] = 8; Quote Link to comment Share on other sites More sharing options...
Frank Posted September 7, 2011 Report Share Posted September 7, 2011 This is by design. Items in the LegendBox can be inverted by doing: chart.LegendBox.ItemAttributes[chart.Series].Inverted = true; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.