Jump to content
Software FX Community

Inconsistent series ordering between plot and data grid in Gantt chart


Recommended Posts

This issue is in the same category as http://community.softwarefx.com/forums/t/12355.aspx.

 The ordering of the series in the plot is different from the ordering in data grid in Gantt chart. Run the following sample code, you can see that in the plot Women is shown on top of Men, but in data grid they are in opposite order where Men is first then Women second.

chart1.Data.Series = 2;

chart1.Data.Points = 3;

chart1.Gallery = Gallery.Gantt;

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;

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...